Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)
You are not logged in.
A work-in-progress I thought I'd share. If anyone has any ideas on things to add, let me know. I do plan on introducing the killer bees gradually so you don't just start with 2 on screen.
http://www.atari2600land.com/gameboy/flies6.gb
Offline
I'm back working on Flies again. I made a lot since the last update.
http://www.atari2600land.com/gameboy/fl … rsion2.zip
Offline
I strongly suggest you to switch to GBDK-2020.
Offline
I got it and downloaded it and tried to compile my code but I got a whole bunch of errors.
http://www.atari2600land.com/thisisstupid.png
Last edited by chris (2021-02-03 09:21:20)
Offline
Offline
chris wrote:
I got it and downloaded it and tried to compile my code but I got a whole bunch of errors.
http://www.atari2600land.com/thisisstupid.png
Looks like a possible bug in SDCC. You can file a bug report directly with them.
https://sourceforge.net/p/sdcc/bugs/
Offline
if (lives>65500) lives=0;
int type can't reach 65500
if ((!(key & (J_START)) && (gamerunning==6))) lives=4, fly1x=200, fly1y=200, move_sprite(2, 200, 200), gamerunning=1, movefly=1, score=0, title_screen=2;
move_sprite() is an inline function so, code should be like this:
if ((!(key & (J_START)) && (gamerunning==6))) { lives=4, fly1x=200, fly1y=200; move_sprite(2, 200, 200); gamerunning=1, movefly=1, score=0, title_screen=2; }
why do you use comma operator everywhere?
ps: i'll report that bug to sdcc devs.
Last edited by toxa (2021-02-04 06:39:41)
Offline
reported. you can track this bug here: https://sourceforge.net/p/sdcc/bugs/3175/
Offline