Search found 771 matches

by grindstone
Feb 25, 2021 14:27
Forum: Beginners
Topic: Function or subroutine?
Replies: 9
Views: 223

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: 9
Views: 223

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: 240

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: 14
Views: 505

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: 1077

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: 704

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: 1050

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.
by grindstone
Feb 02, 2021 14:35
Forum: Game Dev
Topic: an attempt to create a Tamagotchi cat program
Replies: 41
Views: 1050

Re: an attempt to create a Tamagotchi cat program

All right now. With your latest code the sound plays.
by grindstone
Feb 02, 2021 11:20
Forum: Game Dev
Topic: an attempt to create a Tamagotchi cat program
Replies: 41
Views: 1050

Re: an attempt to create a Tamagotchi cat program

The program compiles and runs now, but there's no sound (I took another .wav file and named it "cat_sound.wav").
by grindstone
Feb 01, 2021 17:21
Forum: Game Dev
Topic: an attempt to create a Tamagotchi cat program
Replies: 41
Views: 1050

Re: an attempt to create a Tamagotchi cat program

...this took me hours :( It took me two years to make my flight operator simulation playbable, so be patient. You don't need a constructor to simply initialize variables: Type cat As String text1, text2, text3, text4 As boolean isOut = FALSE As Integer hunger = Int(Rnd*101), pet_count = Int(Rnd*101...
by grindstone
Jan 28, 2021 15:51
Forum: General
Topic: Passing Variables To A Program
Replies: 15
Views: 553

Re: Passing Variables To A Program

I have some difficulty understanding why 4 double quotes in a row equates to one double quote, but it does work. In fact, it is a litte confusing. Two double quotes in a row are interpreted as a double quote as literal, in contrast to a double quote as punctuation character. So the inner two double...
by grindstone
Jan 27, 2021 12:27
Forum: General
Topic: Passing Variables To A Program
Replies: 15
Views: 553

Re: Passing Variables To A Program

The command line arguments are delimited by spaces. To pass an argument containig one or multiple spaces you have to put it in quotes: tx.bas: Dim As String Arg1, Arg2 , Arg3, CMDLine Dim As Integer I0, Result Dim As Single Single01 Arg1 = "This is Arg1," : Arg2 = "This is Arg2,"...
by grindstone
Jan 26, 2021 12:15
Forum: Beginners
Topic: strings using []
Replies: 9
Views: 390

Re: strings using []

Without the terminating 0 character you'd have to store the length information somewhere. That would mean the same complexity as for a var len string.
by grindstone
Jan 26, 2021 12:03
Forum: General
Topic: Accessing the highest ENUM value
Replies: 17
Views: 633

Re: Accessing the highest ENUM value

Correct me, if I'm wrong, but isn't FBs ENUM only a simplified (series of) #DEFINE ?

Isn't

Code: Select all

Enum
   zero
   one
   two
   three
   four
   five
End Enum
the same as

Code: Select all

#Define zero 0
#Define one 1
#Define two 2
#Define three 3
#Define four 4
#Define five 5
?
by grindstone
Jan 24, 2021 20:44
Forum: Game Dev
Topic: looking for partner(s) to geme-dev together
Replies: 29
Views: 1767

Re: looking for partner(s) to geme-dev together

Here is an idea for a game: A game about searching for love – that is the game is a fictional dating site...What do you think about this idea? The developing of the profile generator (I don't suppose you want to write all profiles by hand) could bring a lot of fun. Furthermore we would need an ELIZ...

Go to advanced search