Gameboy Development Forum

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.

Ads

#1 2020-08-08 11:23:18

chris
Member
From: USA
Registered: 2016-11-27
Posts: 142
Website

Flies! (and swatting them)

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


My avatar is from Nintendo Power. I miss those days, so I decided to bring them back.

Offline

 

#2 2021-02-02 08:04:34

chris
Member
From: USA
Registered: 2016-11-27
Posts: 142
Website

Re: Flies! (and swatting them)

I'm back working on Flies again. I made a lot since the last update.
http://www.atari2600land.com/gameboy/fl … rsion2.zip


My avatar is from Nintendo Power. I miss those days, so I decided to bring them back.

Offline

 

#3 2021-02-03 08:11:01

toxa
Member
Registered: 2020-02-13
Posts: 304

Re: Flies! (and swatting them)

I strongly suggest you to switch to GBDK-2020.

Offline

 

#4 2021-02-03 09:09:22

chris
Member
From: USA
Registered: 2016-11-27
Posts: 142
Website

Re: Flies! (and swatting them)

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)


My avatar is from Nintendo Power. I miss those days, so I decided to bring them back.

Offline

 

#5 2021-02-03 09:16:52

rune-dev-matt
Member
From: Germany
Registered: 2020-11-30
Posts: 12

Re: Flies! (and swatting them)

Offline

 

#6 2021-02-03 09:21:51

chris
Member
From: USA
Registered: 2016-11-27
Posts: 142
Website

Re: Flies! (and swatting them)

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


My avatar is from Nintendo Power. I miss those days, so I decided to bring them back.

Offline

 

#7 2021-02-03 14:35:48

bbbbbr
Member
Registered: 2019-03-04
Posts: 124

Re: Flies! (and swatting them)

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

 

#8 2021-02-03 16:10:49

chris
Member
From: USA
Registered: 2016-11-27
Posts: 142
Website

Re: Flies! (and swatting them)

What would I say to them?


My avatar is from Nintendo Power. I miss those days, so I decided to bring them back.

Offline

 

#9 2021-02-04 06:39:00

toxa
Member
Registered: 2020-02-13
Posts: 304

Re: Flies! (and swatting them)

Code:

if (lives>65500) lives=0;

int type can't reach 65500

Code:

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:

Code:

    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

 

#10 2021-02-04 07:06:34

toxa
Member
Registered: 2020-02-13
Posts: 304

Re: Flies! (and swatting them)

reported. you can track this bug here: https://sourceforge.net/p/sdcc/bugs/3175/

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson