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 2017-12-29 16:07:09

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

Ten Pest - a work-in-progress game

So for the past few weeks, I have been making a new Game Boy game called Ten Pest. It's a shooting game where you're in space and shoot different UFOs coming at you. You're on a fixed Y axis, but you can move around the X axis by pressing left or right. Pressing up and down changes the position the ship is facing. The aliens come from the bottom or top and move towards the center. The object is to not make them reach the center of the screen. Also, some UFOs shoot at you, so if you get hit by a laser, the game can end that way too. The link to download the game is here:
http://www.atari2600land.com/gameboy/tenpest.html
Let me know what you think and what changes I should make.


MidSpace: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/midspace.html
Oranges: The other one http://www.atari2600land.com/gameboy/oranges.html

Offline

 

#2 2017-12-30 11:33:49

Ryoga
Member
From: Spain
Registered: 2014-12-21
Posts: 15

Re: Ten Pest - a work-in-progress game

The "Download" is not working ->>>> "404 - Not Found"

Offline

 

#3 2017-12-30 13:37:20

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

Re: Ten Pest - a work-in-progress game

Fixed it. Thanks for letting me know.


MidSpace: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/midspace.html
Oranges: The other one http://www.atari2600land.com/gameboy/oranges.html

Offline

 

#4 2018-03-19 17:55:03

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

Re: Ten Pest - a work-in-progress game

I changed a whole bunch of stuff, even the name. I changed the name of the game to MidSpace, since you're in the middle of outer space, shooting aliens coming at you.


MidSpace: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/midspace.html
Oranges: The other one http://www.atari2600land.com/gameboy/oranges.html

Offline

 

#5 2018-08-09 23:10:09

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

Re: Ten Pest - a work-in-progress game

I have returned to working on this game again. I think I have improved it since the previous March versions. Download here: MidSpace website

Last edited by chris (2018-08-09 23:10:40)


MidSpace: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/midspace.html
Oranges: The other one http://www.atari2600land.com/gameboy/oranges.html

Offline

 

#6 2018-08-11 18:45:01

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

Re: Ten Pest - a work-in-progress game

I have found a bug in my code and I don't know how to get rid of it. I've tried everything and nothing works.
It only happens sometimes and it involves starting over again once you get the game over screen, press start to go back to the title screen. If the bug wants to work, pressing start will get rid of the main screen and then freeze. I don't know how it's triggered, either.
I'm hoping someone can take a look at my code and see what is causing this to happen. Otherwise, I guess I'll have to shelve this game.
http://www.atari2600land.com/gameboy/midspace24a.c


MidSpace: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/midspace.html
Oranges: The other one http://www.atari2600land.com/gameboy/oranges.html

Offline

 

#7 2018-08-12 10:54:35

ssjason123
Member
Registered: 2017-03-21
Posts: 36

Re: Ten Pest - a work-in-progress game

Does the bug occur almost randomly after reaching gameover after a couple gameplays? The recursive main call in main function worries me, my guess is its blowing the stack. Seems like you could solve that by just wrapping everything in main in a while(1) and letting it naturally reach the end and start over instead of calling main again.

Offline

 

#8 2018-08-12 16:48:59

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

Re: Ten Pest - a work-in-progress game

I got rid of the main call in main, and I thought it had stopped it wasn't doing it, but then it happened again, so I still don't know what's wrong.
http://www.atari2600land.com/gameboy/midspace25.c

Last edited by chris (2018-08-12 16:49:13)


MidSpace: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/midspace.html
Oranges: The other one http://www.atari2600land.com/gameboy/oranges.html

Offline

 

#9 2018-08-12 19:26:23

ssjason123
Member
Registered: 2017-03-21
Posts: 36

Re: Ten Pest - a work-in-progress game

I'm not seeing much else that stands out.

There is a line for "wait_vbl_done;" should this be a function call? I don't think this would cause a problem though, it just wouldn't do anything.

Are you able to reproduce the issue in BGB? I am curious what its executing when it freezes and if it might be reporting any of the exception cases.

Offline

 

#10 2018-08-12 19:37:21

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

Re: Ten Pest - a work-in-progress game

I have primarily been using BGB to test the game so far.


MidSpace: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/midspace.html
Oranges: The other one http://www.atari2600land.com/gameboy/oranges.html

Offline

 

#11 2018-08-12 22:41:01

ssjason123
Member
Registered: 2017-03-21
Posts: 36

Re: Ten Pest - a work-in-progress game

I did some debugging in BGB rebuilding the latest and mapping the symbols using map2sym and it looks like something weird is happening with gameover during the main gameinaction == 4 loop. It looks like it is stuck at 1 when it locks up. I think the gameoversfxseconds is letting it run one loop before getting stuck.

Offline

 

#12 2018-08-13 02:19:32

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

Re: Ten Pest - a work-in-progress game

I changed line 506 to say this:

Code:

    if ((gameover>1) && (gameover<49)) gameoversfxseconds++;

Played the game for 15 minutes and it didn't freeze up.
Can you get it to freeze?
http://www.atari2600land.com/gameboy/midspace26.zip


MidSpace: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/midspace.html
Oranges: The other one http://www.atari2600land.com/gameboy/oranges.html

Offline

 

#13 2018-08-13 20:30:43

ssjason123
Member
Registered: 2017-03-21
Posts: 36

Re: Ten Pest - a work-in-progress game

I played it for a little while it seemed fine, no lockups. I am a bit unsure how that change would fixed the case I saw while debugging though. Where gameover was stuck at 1. Just to be safe I would probably reset gameoversfxseconds to 0 in your gameinaction==3 setup block.

Offline

 

#14 2018-08-13 21:21:47

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

Re: Ten Pest - a work-in-progress game

OK, I did that. Still no freezing issues. I played for about 10 minutes, it seems fine now. Thank you so much for helping me with this! It means a lot to me.

Last edited by chris (2018-08-13 21:24:13)


MidSpace: The Game Boy game I'm working on: http://www.atari2600land.com/gameboy/midspace.html
Oranges: The other one http://www.atari2600land.com/gameboy/oranges.html

Offline

 

#15 2018-08-13 23:59:52

ssjason123
Member
Registered: 2017-03-21
Posts: 36

Re: Ten Pest - a work-in-progress game

Any time, happy to help.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson