Search found 1568 matches
- Jan 03, 2023 13:22
- Forum: Game Dev
- Topic: Space Invaders
- Replies: 13
- Views: 4134
Re: Space Invaders
dim as fb.Image Ptr img = ImageCreate(wid*xfactor, height*yfactor, RGB(255,0,255), 32)[/tt] where the values should resolve as dim as fb.Image Ptr img = ImageCreate(24, 24, RGB(255,0,255), 32)[/tt] This line is likely returning 0. I could check for that and avoid the crash, but all I could do at th...
- Jan 03, 2023 13:19
- Forum: Game Dev
- Topic: Space Invaders
- Replies: 13
- Views: 4134
Re: Space Invaders
Code: Select all
Aborting due to runtime error 7 (null pointer access) at line 184 of C:\Programming\other-projects\freebasic-games2-main\space-invaders\gaming.bas::TEXT2SPRITE()
Code: Select all
w = sp.ci(c).image->width
- Jan 03, 2023 13:08
- Forum: Community Discussion
- Topic: Copy Arrays
- Replies: 17
- Views: 3055
Re: Copy Arrays
It's not as 'simple' as it might appear at first glance. For example, what happens when you have arrays of complex types (that might also include arrays of complex types as well)? Or arrays of types that refer to other types (via pointer)?
- Jan 02, 2023 2:02
- Forum: Game Dev
- Topic: Space Invaders
- Replies: 13
- Views: 4134
Re: Space Invaders
Aborting due to runtime error 7 (null pointer access) at line 411 of C:\Programming\other-projects\freebasic-games-main\space_invaders\assets.bas::MAKEBASES() To catch these kind of errors, compile the code with the -exx switch and run the executable from the command line (so you can see the output).
- Nov 03, 2022 14:49
- Forum: Game Dev
- Topic: Retro game ideas?
- Replies: 3
- Views: 2986
Re: Retro game ideas?
Mr Driller is certainly a lot more complex than the original Boulder Dash game. Falling tetris like blocks. Complex graphic effects. My interest was always in the coding challenge, not playing the game, so I guess I can't complain about the complexity. However I think a game can still be addictive ...
- Nov 02, 2022 12:25
- Forum: Game Dev
- Topic: Retro game ideas?
- Replies: 3
- Views: 2986
Re: Retro game ideas?
Looking really nice so far. Sometimes, original ideas are hard to come up with. The next best thing, then, is taking an old idea and interpret it differently. Look at the successful games out there. Not all of them have 100% original ideas (most of them don't, in fact), but they take a tried and tru...
- Oct 06, 2022 1:40
- Forum: DOS
- Topic: Let's develop OpenWinDOS
- Replies: 54
- Views: 12050
Re: Let's develop OpenWinDOS
... Like your project, it is basically abandoned, because I have no real use for it: it works, but on Windows or Linux it's pretty useless (what is the point of having a window with its own windowing subsystem inside? All those windows would still be drawn with FreeBasic primitives, and would still...
- Sep 30, 2022 19:06
- Forum: General
- Topic: membership recant
- Replies: 2
- Views: 1534
Re: OpenGl 3d :improve render
Welcome to the forum, Chuck. As you can see, I've removed the email as you posted it to avoid bots to pick it up and flood your mail with spam.
Should any member be interested in helping, you can share your mails via the PM function of the forum. Have fun and enjoy your stay.
Should any member be interested in helping, you can share your mails via the PM function of the forum. Have fun and enjoy your stay.
- Sep 26, 2022 12:21
- Forum: Beginners
- Topic: Is there something Valgrind like tool for FreeBasic for Win?
- Replies: 5
- Views: 1212
Re: Is there something Valgrind like tool for FreeBasic for Win?
Greetings, Since in FreeBasic one can use pointer for various needs,sometimes may be as heavily as possible,I am wondering whether there is any valgrind-like tool exists to help detecting memory leakage,or what is the right to do to write a safer and more rubust program? Thanks for the help in adva...
- Sep 21, 2022 17:18
- Forum: General
- Topic: error 51: User Defined Type too big
- Replies: 34
- Views: 3585
Re: error 51: User Defined Type too big
... In C language, large structures can be declared. Just imagine: a C programmer will come to port his program to FreeBASIC. And then the compiler shows him an error. A C programmer will exclaim, "Is it still impossible to create large structures in FreeBASIC? Funny!" ... Not according t...
- Sep 04, 2022 11:36
- Forum: Community Discussion
- Topic: #freebasic IRC channel at freenode
- Replies: 9
- Views: 1622
Re: #freebasic IRC channel at freenode
See viewtopic.php?t=26784 for the alternative. Still active and more laid back.
- Aug 28, 2022 13:09
- Forum: Libraries Questions
- Topic: SQLite3
- Replies: 7
- Views: 3329
Re: SQLite3
#Inclib "libsqlite3" Ok, ok changed to inclib "sqlite3' and now the linker tells me skipping incompatible ./libsqlite3.a when searching for -lsqlite3 Check the bitness of the library. That error means that you're trying to compile a 64-bit program linking against a 32-bit lib (or vic...
- Jul 18, 2022 22:57
- Forum: Community Discussion
- Topic: setting up msys2 to build the FB manual
- Replies: 2
- Views: 717
Re: setting up msys2 to build the FB manual
Very useful info! Thanks, srvaldez
- Jul 10, 2022 20:13
- Forum: General
- Topic: Advise on the following example
- Replies: 22
- Views: 1769
- Jul 09, 2022 23:39
- Forum: General
- Topic: Advise on the following example
- Replies: 22
- Views: 1769
Re: Advise on the following example
' Coded by : Andrew Gable ' Designed by : Andrew Gable ' Software owned by : Andrew Gable and algPoS, Northampton ' This is a Example of how to use the Page copying mode to smooth out the graphics and Hopefully make the application ' More stable 'Screen copy example #Include "string.bi" #...