Search found 1989 matches

by badidea
May 01, 2020 21:38
Forum: General
Topic: Tetris piece creation
Replies: 7
Views: 343

Re: Tetris piece creation

It finally works. But I had hoped to create a more elegant solution, this is mostly brute-force and test. Anyway, here are all the one-sided heptominoes: const SW = 800, SH = 600 const NUM_SQUARES = 7 '------------------------------------------------------------------------------- type piece_type di...
by badidea
May 01, 2020 14:12
Forum: General
Topic: Tetris piece creation
Replies: 7
Views: 343

Tetris piece creation

A bit silly project. Creating Tetris (tetrominoes) without hard-coding them.
Change in code below (next post) NUM_SQUARES to 4.
by badidea
Apr 30, 2020 19:34
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 3222

Re: What do you use FreeBASIC for?

... It is interesting to me because FreeBASIC isn't even on the radar so why do we use it and other do not? https://www.youtube.com/watch?v=QyJZzq0v7Z4 I haven't watched your link yet, will do this now, but "Uncle Bob" says: No language is perfect. And that is also way there are so many. ...
by badidea
Apr 29, 2020 22:35
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 3222

Re: What do you use FreeBASIC for?

An interesting talk about the history and future of programming:
"Uncle" Bob Martin - "The Future of Programming"
by badidea
Apr 29, 2020 14:19
Forum: Community Discussion
Topic: Could someone make a list of FreeBASIC GUI libraries/frameworks?
Replies: 166
Views: 5018

Re: Could someone make a list of FreeBASIC GUI libraries/frameworks?

BTW, I used to see D.J.Peters used "fltk-oop.bi" on his code snippet but I can't found it anywhere on the forum. Could someone let me know where to get it? Thanks. You mean this post: https://freebasic.net/forum/viewtopic.php?f=14&t=24547&start=165#p254486 ? I don't think he relea...
by badidea
Apr 28, 2020 21:29
Forum: Game Dev
Topic: Meteorite shooter
Replies: 9
Views: 685

Re: Meteorite shooter

Shooting click area outside the shape. You must annihilate all green pixels before they leave the shape. A single pixel might get out but you must finish it off anyway. You are a clever coder, but making games is not your best skill :-) Or I am just too stupid. I don't understand how to play it. Ed...
by badidea
Apr 28, 2020 21:05
Forum: Tips and Tricks
Topic: Wormhole effect
Replies: 34
Views: 888

Re: Wormhole effect

...it does not work properly with the 32-bit compiler. I've tested it on my Win10 PC compiled as x86 GUI and it seems to work properly! What's wrong on your side? With 32-bit fbc on linux, I only get a gray blob moving around. I'll check if I can find the problem... For the timer variables: Windows...
by badidea
Apr 28, 2020 19:51
Forum: Tips and Tricks
Topic: Wormhole effect
Replies: 34
Views: 888

Re: Wormhole effect

ShawnLG wrote:I have written a wormhole tunnel effect out of bordom. It would pair well with the Dr. Who soundtrack.

All timer related variables should be double, and it does not work properly with the 32-bit compiler.
by badidea
Apr 28, 2020 10:18
Forum: Beginners
Topic: Ubound crash? [solved]
Replies: 8
Views: 243

Re: Ubound crash?

The issue is solved. Thanks for all the replies. It was something stupid (as expected). A 0-pointer. In short: type plant_grow_list dim as plant_grow_item item(any) declare sub add(gridPos as int2d, plantId as integer) '... end type sub plant_grow_list.add(gridPos as int2d, plantId as integer) dim a...
by badidea
Apr 27, 2020 22:31
Forum: Beginners
Topic: Ubound crash? [solved]
Replies: 8
Views: 243

Ubound crash? [solved]

I ran into a weird issue. Is there a situation thinkable where dim as integer ub = ubound(item) Results in the following error:? Aborting due to runtime error 12 ("segmentation violation" signal) And why do weird errors always happen when you think you have completed a piece of code and pl...
by badidea
Apr 27, 2020 21:57
Forum: Community Discussion
Topic: Could someone make a list of FreeBASIC GUI libraries/frameworks?
Replies: 166
Views: 5018

Re: Could someone make a list of FreeBASIC GUI libraries/frameworks?

jj2007 wrote:
Coolman wrote:it works very well. a simple program has a size of about 700 kb. which is very reasonable
No, that's terribly bloated, 100 times the size of TinyIDE ;-)

700 kB is also about 1/6000 th of the windows 10 update from version 1809 to 1909. And still fits on a floppy disk, if one can find one.
by badidea
Apr 27, 2020 18:00
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 3222

Re: What do you use FreeBASIC for?

And I found one fact: people usually whine about brackets are from non English speaking countries, mostly from Germany and Netherlands and so on, with their own weirded keyboard and weirded mother languages. I don't want to insult anyone, but even the Chinese enjoy working with brackets than begin....
by badidea
Apr 26, 2020 21:15
Forum: General
Topic: Squares
Replies: 7839
Views: 488887

Re: Yah-Zip

albert wrote:...And it's real slow...

It does not matter if the compression takes 1 second or 1 hour as long as you don't have a working decompression.
by badidea
Apr 25, 2020 9:24
Forum: Game Dev
Topic: Meteorite shooter
Replies: 9
Views: 685

Re: Meteorite shooter

ShawnLG wrote:Are you kidding me! I fixed it.

Looks good.

ShawnLG wrote:My high score was 183. Is there a way to win?

No, infection is unavoidable :-)
by badidea
Apr 24, 2020 17:08
Forum: General
Topic: Parse string to tree structure (solved)
Replies: 61
Views: 2282

Re: Parse string to tree structure (solved)

But I haven't seen the birds much the last days. Maybe they're busy with breeding. BTW: The couple of Great Ttimice in my letterbox are breeding, too now. Yes, could be the case. I remember from chicken that when they are breeding, they go into full lock-down mode with 3 weeks of voluntary social d...

Go to advanced search