Search found 779 matches

by grindstone
Apr 09, 2021 7:26
Forum: Beginners
Topic: Exiting from ASM
Replies: 7
Views: 315

Re: Exiting from ASM

Jumping to an empty line seems inelegant, if not illogical. Then just use the NOP (=No Operation) statement: Dim bytvar As Byte Dim bstatus As Byte Do Input "Enter a byte value (0 to quit): ", bytvar If bytvar = 0 Then Exit Do End If ' If bytvar = 1, then Status = 1, else Status = 0 ASM c...
by grindstone
Apr 05, 2021 17:24
Forum: Beginners
Topic: Controlling transistors via usb
Replies: 10
Views: 414

Re: Controlling transistors via usb

On the other hand: The capability of accessing USB by FB -analogue to GetMouse or GetJoystick would be a nice feature.
by grindstone
Mar 30, 2021 15:40
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 561

Re: Inkey issue in console on rmb

Works also on XP.
by grindstone
Mar 30, 2021 10:53
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 561

Re: Inkey issue in console on rmb

Same behaviour on WinXP if "Quick Edit" is on (switched off by default here). Very funny!
by grindstone
Mar 30, 2021 9:07
Forum: General
Topic: Inkey issue in console on rmb
Replies: 17
Views: 561

Re: Inkey issue in console on rmb

I can't reproduce that. Performing any mouse action, nothing happens (just as it ought to be). What OS are you using and what version of FB?
by grindstone
Mar 23, 2021 14:49
Forum: Beginners
Topic: Function or subroutine?
Replies: 11
Views: 512

Re: Function or subroutine?

Sorry, "Generator" of what? From chessboard to FEN? And vice versa. You can set and read the FEN as well as the board: Dim As Integer board(12,12) Dim As tFen gamefen Dim As String myFEN myFEN = gamefen.fen 'generates a FEN from the members of "gamefen" myFEN = gamefen.fen(board...
by grindstone
Mar 11, 2021 14:44
Forum: Community Discussion
Topic: ISO-Date provider? (in next FBC-release)
Replies: 7
Views: 319

Re: ISO-Date provider? (in next FBC-release)

What about an appropriate preprocessor?

Code: Select all

#DATE US
#DATE ISO
by grindstone
Mar 05, 2021 15:50
Forum: Community Discussion
Topic: Thank you
Replies: 12
Views: 657

Re: Thank you

I fall into line: A big thank you to all those who work to bring forth FreeBASIC.
by grindstone
Feb 25, 2021 14:27
Forum: Beginners
Topic: Function or subroutine?
Replies: 11
Views: 512

Re: Function or subroutine?

This is your parser for extract data from the FEN? It's a parser as well as a generator. The advantage is that you don't have to care about the conversion. Just read or write either the FEN or any of its values as a variable. The example I've posted won't work as standalone, because it's linked wit...
by grindstone
Feb 24, 2021 17:10
Forum: Beginners
Topic: Function or subroutine?
Replies: 11
Views: 512

Re: Function or subroutine?

In my Colochessum engine testing program I solved this with properties. You only have to write the fen string to the UDT and immediately afterwards you can read all corresponding values. Conversely you can get the fen from the actual values (you should replace the Integers with ULongs): Type tFen pi...
by grindstone
Feb 18, 2021 14:39
Forum: Tips and Tricks
Topic: getjoystick() demo
Replies: 3
Views: 352

Re: getjoystick() demo

Works with my gamepad, but it seems I'm not a real good sword fighter...
by grindstone
Feb 06, 2021 15:57
Forum: Community Discussion
Topic: Sound (description)
Replies: 21
Views: 1072

Re: Sound (description)

Analogue to the fbgfx.bi, I would consider a sound library a good idea.
by grindstone
Feb 05, 2021 11:43
Forum: Game Dev
Topic: An attempt to create a first person adventure game engine
Replies: 38
Views: 1446

Re: An attempt to create a first person game\program

Do you mean a kind of adventure? Or an egoshooter?
by grindstone
Feb 03, 2021 10:27
Forum: Projects
Topic: Soundra, a free modular synthesizer
Replies: 15
Views: 1093

Re: Soundra, a free modular synthesizer

What about the FB sources? They seem not to be downloadable.
by grindstone
Feb 02, 2021 17:21
Forum: Game Dev
Topic: an attempt to create a Tamagotchi cat program
Replies: 41
Views: 1408

Re: an attempt to create a Tamagotchi cat program

@BasicCoder2: I had the same issue. After copying the whole content of the fbsound-1.1 folder (including the subfolders) into the tamagotchi program folder it worked. No clue which of the files are really required.

Go to advanced search