Search found 2324 matches

by badidea
Jul 20, 2021 22:19
Forum: Linux
Topic: Transparent window
Replies: 1
Views: 80

Re: Transparent window

The example works fine here with 64-bit fbc 1.07.0 (gcc), but no transparency 32-bit fbc 1.07.0 (gas).
by badidea
Jul 12, 2021 0:34
Forum: Game Dev
Topic: Tetris, but with hexagons
Replies: 10
Views: 571

Re: Tetris, but with hexagons

The full line removal (with drop of all blocks if possible) is now implemented. GitHub link first post. They say that people who play a lot of Tetris, start dreaming of Tetris blocks. Also know as the Tetris effect . 'Tetris nightmare' seems like good name for this version. Unfortunately someone alr...
by badidea
Jul 08, 2021 21:37
Forum: Game Dev
Topic: Tetris, but with hexagons
Replies: 10
Views: 571

Re: Tetris, but with hexagons

I should continue with this, but I keep getting distracted by other stuff.
Due to the weird coordinate system, seemingly simple things (like looping a row) are not that simple.
by badidea
Jun 30, 2021 23:06
Forum: General
Topic: best way to clear an image (ImageCreate)
Replies: 5
Views: 156

Re: best way to clear an image (ImageCreate)

Great!!, your right I missed the -1, thanks for pointing that out. It is not a big problem because line() will not draw 'outside' the image. So no real performance difference I think. Note that I am still on an older fbc version (1.07.0) and that some changes were done to Imageinfo() recently, but ...
by badidea
Jun 30, 2021 22:56
Forum: General
Topic: best way to clear an image (ImageCreate)
Replies: 5
Views: 156

Re: best way to clear an image (ImageCreate)

Using line to clear is already efficient I think (no benchmarks done). Note that 0 to w-1/h-1 is sufficient. Example using pixel data pointer added. #include "fbgfx.bi" sub clear_graph_full(pImg as FB.IMAGE ptr, _color as ulong ) dim as integer w, h imageinfo(pImg, w, h) line pImg, (0, 0)-...
by badidea
Jun 27, 2021 20:02
Forum: Community Discussion
Topic: Windows 11
Replies: 29
Views: 1142

Re: Windows 11

Here is a bit more info: How-To Geek Positive news in that article. Smaller updates, removal of 'live tiles' from start menu, back to a real operating system :-) But, as usual, Microsoft will probably introduce something again that no one wants. Like this 'news & interests' recently or 'analyti...
by badidea
Jun 22, 2021 18:19
Forum: Projects
Topic: Collisions simulator
Replies: 5
Views: 323

Re: Collisions simulator

Some of my code I found (from 2009 with some small applied tweaks now). 200 compressible balls in a box with gravity. The total energy (Etot) should always be the same, but it is fluctuating a bit. Maybe an error (error due to wall collisions?). If you change NBALLS to 5, then it easier to follow. #...
by badidea
Jun 20, 2021 21:39
Forum: Projects
Topic: Simple Offline OSM Maps viewer
Replies: 2
Views: 229

Re: Simple Offline OSM Maps viewer

Hi, that code could be useful, but I get an error with "-exx" compile option: "Aborting due to runtime error 6 (out of bounds array access) at line 156 of test.bas::()" The maps is shown briefly, before the runtime error. Without "-exx" it segfaults. Also with 64-fbc th...
by badidea
Jun 20, 2021 0:33
Forum: Beginners
Topic: Where are acolours in the Help
Replies: 3
Views: 115

Re: Where are acolours in the Help

For graphics screens, up to 8 bit colors: https://freebasic.net/wiki/GfxDefPalettes
by badidea
Jun 19, 2021 14:49
Forum: Beginners
Topic: Distortion when moving across the screen sprite (Raspberry 4B))
Replies: 67
Views: 1445

Re: Distortion when moving across the screen sprite (Raspberry 4B))

Only running these third party libraries is not very easy. Getting the actual libraries on linux is relative easy. Via the distro package manager. I have no experience with Raspberry however. Can you advise any literature? For now, 2D graphics, sounds and keyboard and mouse controls are enough for ...
by badidea
Jun 19, 2021 0:51
Forum: Game Dev
Topic: Tetris, but with hexagons
Replies: 10
Views: 571

Re: Tetris, but with hexagons

I am a bit stuck on the progress of this game as I have not decided yet what should happen when a line is made. In normal (squares) tetris, all blocks move down. That is not always possible in this version as can be seen in these two screenshots: https://raw.githubusercontent.com/verybadidea/hexgrid...
by badidea
Jun 18, 2021 22:00
Forum: Beginners
Topic: Distortion when moving across the screen sprite (Raspberry 4B))
Replies: 67
Views: 1445

Re: Distortion when moving across the screen sprite (Raspberry 4B))

As a daily linux user and occasional game programmer I am aware of the screen tearing issue, but it never bothered me too much. Maybe the issue is more prominent on a slower Raspberry. The issue was also brought up last year: Freebasic is not smooth in graphics , although the OS was never specified....
by badidea
Jun 10, 2021 21:53
Forum: Beginners
Topic: Is FreeBASIC good for beginners to progrmaming?
Replies: 95
Views: 2642

Re: Is FreeBASIC good for beginners to progrmaming?

... [*]Your favorite card game (be it Poker, Texas Hold'em, Blackjack, Hearts, Solitaire, etc) or a casino game (Roulette, Slots, etc) ... There were a few moments when I wanted to write a poker bot/AI, but I could never figure out how to approach this problem. Someday, I give it another try... Tha...
by badidea
Jun 10, 2021 21:40
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 72
Views: 3870

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

When using "XFont" with FreeBASIC 32Bit, it cannot be compiled with the following error. I would appreciate it if you could tell me how to fix it. XFont (Text Render Library) Version 11.9.13. http://xaviorsoft.freebasic.net/fbproduct/ http://xaviorsoft.freebasic.net/fbproduct/xfont_win.zi...
by badidea
Jun 10, 2021 21:26
Forum: Community Discussion
Topic: old code and new compiler versions
Replies: 8
Views: 485

Re: old code and new compiler versions

Cost of improving computer languages I guess. If breaking code is not allowed, then a language can not progress at a certain point. You can keep older versions of the freebasic compiler on your computer, for this but that might give problems later. E.g. when Windows 11 is released and happens to st...

Go to advanced search