Search found 1450 matches

by badidea
Sep 07, 2019 10:52
Forum: General
Topic: Help with direct mouse input
Replies: 3
Views: 175

Re: Help with direct mouse input

Something like this might work. I can try to make some FB code later today... Update: Translating the linked code will be difficult. The low level I/O functions for linux are missing in freebasic(). Don't know how to get the file descriptors. Update: The low level I/O functions for linux aren't miss...
by badidea
Sep 06, 2019 21:32
Forum: Beginners
Topic: A MIND GAME SIMULATION (sketch)
Replies: 6
Views: 344

Re: A MIND GAME SIMULATION (sketch)

=- -> -= & =+ -> += :-)
by badidea
Sep 06, 2019 20:22
Forum: Beginners
Topic: A MIND GAME SIMULATION (sketch)
Replies: 6
Views: 344

Re: A MIND GAME SIMULATION (sketch)

If you change "k2" to "k2_" (or something else), it will probably work. There seems to be a problem with the 32-bit assembler: hello.asm: Assembler messages: hello.asm:50: Error: invalid use of register Compilation failed. I consider it a bug in the compiler. This code triggers i...
by badidea
Sep 06, 2019 17:34
Forum: Linux
Topic: Context help in Geany
Replies: 7
Views: 2487

Re: Context help in Geany

I just figured out an alternative way to have context help in Geany: A) Menu: Edit -> Preferences -> Tools -> Context action: "firefox https://freebasic.net/wiki/wikka.php?wakka=KeyPg %s " B) Menu: Edit -> Preferences -> Keybindings -> Action Editor, Context Action -> Set to e.g. Ctrl+F1 (...
by badidea
Sep 06, 2019 16:36
Forum: Beginners
Topic: GUESS MY NUMBER GAME
Replies: 7
Views: 249

Re: GUESS MY NUMBER GAME

i have both fbedit and fbide and i prefer to use fbedit witch one is your favorite? I run linux with Geany (as general purpose IDE/Editor) also for other languages (e.g. python). It does not have certain features like direct keyword help (solved: https://freebasic.net/forum/viewtopic.php?f=5&t=...
by badidea
Sep 06, 2019 14:23
Forum: Beginners
Topic: GUESS MY NUMBER GAME
Replies: 7
Views: 249

Re: GUESS MY NUMBER GAME

A quick conversion to freeBASIC format, without changing behaviour: '_TITLE "GUESS MY NUMBER V.2" FUNCTION GetKey2(keysToCatch AS STRING) AS STRING '<-- GetKey is a FB keyword DIM k AS STRING DO k = INKEY WHILE LEN(k) = 0 k = INKEY SLEEP 1 '<-- Sleep at least 1 ms, else 100% CPU load WEND ...
by badidea
Sep 05, 2019 21:03
Forum: Community Discussion
Topic: __FB_BUILD_DATE__ should be changed to ISO-Date
Replies: 12
Views: 400

Re: __FB_BUILD_DATE__ should be changed to ISO-Date

The current __FB_BUILD_DATE__ seems consistent with the DATE format, which is consistent the the old QB DATE format (according to https://freebasic.net/forum/viewtopic.php?f=2&t=26495&p=244396#p244396). So adding __FB_BUILD_DATE_ISO__ is maybe best. I have never used the build date before, s...
by badidea
Sep 05, 2019 20:48
Forum: General
Topic: Squares
Replies: 6887
Views: 404825

Re: Squares

Sounds like a good way to destroy data.
by badidea
Sep 05, 2019 16:57
Forum: Community Discussion
Topic: __FB_BUILD_DATE__ should be changed to ISO-Date
Replies: 12
Views: 400

Re: __FB_BUILD_DATE__ should be changed to ISO-Date

I agree, fbc 1.06.0 gives me "02-17-2019". Second day of 17th month of 2019.
by badidea
Sep 03, 2019 21:50
Forum: Windows
Topic: Setting gcc compiler for WinFBE
Replies: 93
Views: 2801

Re: Setting gcc compiler for WinFBE

I know absolutely nothing about toolchains [1] , building fbc or WinFBE. What I do know, is that the latest LTS (long term release) of Ubuntu (18.04, a year old now) has GCC 7.4 installed. So Ubuntu considered 7.4 stable (and did not see a reason to update it since then), but with this nice (default...
by badidea
Sep 02, 2019 22:27
Forum: Beginners
Topic: A MIND GAME SIMULATION (sketch)
Replies: 6
Views: 344

Re: A MIND GAME SIMULATION (sketch)

It is quite funny, I died 3 times after the first day and made it once to the 4th day.
by badidea
Sep 02, 2019 22:19
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 6409

Re: Physics question

Possibly the most frustrating game ever: #Include "fbgfx.bi" Type int2d As Integer x, y Declare Constructor Declare Constructor(x As Integer, y As Integer) Declare Operator Cast () As String End Type Constructor int2d End Constructor Constructor int2d(x As Integer, y As Integer) This.x = x...
by badidea
Sep 02, 2019 19:43
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 6409

Re: Physics question

Cool, I see that you have a 'slightly' modified the gravitational constant, else thing would be very slow. For linux systems: Dim shared as Single Double FPS_Timer, t0 It's just a constant, you can give it any value you want. The real G is just as arbitrary, it depends on the random units we use. I...
by badidea
Sep 02, 2019 18:02
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 6409

Re: Physics question

I'm still around :-) Here, as promised, are some space physics examples. Some are rather old, but I'll just post them as they are, warts and all. First, a vector library and a ball shaped space ship, asteroids in orbit around a central planet, also featuring collision with friction. You control the...
by badidea
Sep 01, 2019 22:38
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 6409

Re: Physics question

While patiently waiting for h4tt3n's space physics doodle stuff, I slowly convert my code to a small game: #Include "fbgfx.bi" Type int2d As Integer x, y Declare Constructor Declare Constructor(x As Integer, y As Integer) Declare Operator Cast () As String End Type Constructor int2d End Co...

Go to advanced search