Videopac / Odyssey2 forum

Programming the Videopac / Odyssey2 => Homebrews => Topic started by: Chris! on July 14, 2015, 06:52:52 PM



Title: Plumber game
Post by: Chris! on July 14, 2015, 06:52:52 PM
Guess what I'm trying to go for here. Right now, you can move the guy around. The POW block is used, but since there's no enemies, it doesn't do anything except make a thud noise and disappear. I was trying to think of a way to make the guy move around. I thought of the 2600 version of Pac-Man and Pac-Man's "rules" for moving. I made my own set of rules for Mr. Plumber Man to move around. I could have sworn I made a topic for this game back when I first introduced it a few years ago. I don't know of a title yet for this game. I actually like the title "Mr. Plumber Man".


Title: Re: Plumber game
Post by: Chris! on July 15, 2015, 01:49:42 PM
Why won't this work?
Code:
mov r0,#03dh ; check collisions
mov a,@r0
anl a,#024h ; check for s2
jnz get_new_enemy
  what I want to have happen is if player 0, 2, and grid are all three touching each other, then get a new enemy. But I tried the above code and stupid screwy stuff that it's not supposed to do happens instead.
I attached the code, but I took out the above code because it wasn't working right.


Title: Re: Plumber game
Post by: manopac on July 15, 2015, 06:05:39 PM
I'm pretty sure you want to read the collision from VDC, not from internal RAM ... movx instead of mov could help ....


Title: Re: Plumber game
Post by: Chris! on July 15, 2015, 06:29:10 PM
I think I solved the problem. I don't know how, though. What I did was first check the collision of player 0 and player 2 and then see if player 0 was touching the grid as well. I don't know why that works, though. I tested it on real hardware and it plays good. I also added the sounds back in as well. I had deleted the sound since it wasn't working right but now it is. How odd...


Title: Re: Plumber game
Post by: Rene_G7400 on July 16, 2015, 10:16:04 AM
I'm pretty sure you want to read the collision from VDC, not from internal RAM ... movx instead of mov could help ....

 ???

I thought that you knew something about Videopac programming? The collision detection data is copied from the VDC to intram 03dh in the Vsync interrupt routine of the BIOS...


Title: Re: Plumber game
Post by: manopac on July 16, 2015, 01:27:21 PM
ah ok :D I usually don't use the BIOS interrupt routines ;-)


Title: Re: Plumber game
Post by: Chris! on July 16, 2015, 06:56:46 PM
Added animation! It took a few hours, and I had to redo the screen, but it works.


Title: Re: Plumber game
Post by: Chris! on July 17, 2015, 12:07:43 PM
Version 4a broke the high score function. Version 4b made it work again.


Title: Re: Plumber game
Post by: Chris! on July 20, 2015, 12:42:01 AM
Version 6. Made it more like Mario Bros. After hitting him from above, you now need to go up to your enemy's platform and kick him to get rid of him and score points.


Title: Re: Plumber game
Post by: Chris! on July 21, 2015, 09:37:37 PM
Crab! I used up almost an entire 2k, so I think I can be almost done unless any bugs show up.


Title: Re: Plumber game
Post by: Rene_G7400 on July 21, 2015, 11:12:40 PM
You don't have to stop at 2k.


Title: Re: Plumber game
Post by: Chris! on July 21, 2015, 11:59:56 PM
Yes, I know, but if there isn't a reason to then why bother?


Title: Re: Plumber game
Post by: Rafael on July 22, 2015, 04:37:34 AM
Crabs looks nice. But theyīre hard to hit. Maybe you should to use some O2 chars as fireball and have 2 enemies on screen at the same time. Suggest other sounds may sound repetitive ???


Title: Re: Plumber game
Post by: Chris! on July 22, 2015, 04:18:48 PM
How many sounds are there that I can use? The Odyssey 2 sound library isn't all that big.


Title: Re: Plumber game
Post by: Rafael on July 23, 2015, 03:48:04 AM
Have you tried to check soundfinder:
http://www.guttenbrunner.com/videopac/
Iīm sure Odyssey can reproduce something like 2600 sounds
Also donīt forget to try to include voice sounds.


Title: Re: Plumber game
Post by: Chris! on July 23, 2015, 05:46:19 AM
I can change the way Odyssey 2 makes sounds and not have to rely on the built-in ones? Well, I don't understand the sound tool, but I changed the sound of the enemy hitting. I don't think I have room to do anything else, perhaps change a few more sounds, but I kind of like the sounds in the game already. In future games I will try to make more unique sounds, but changing this game's code without breaking it is kind of hard.


Title: Re: Plumber game
Post by: Chris! on July 23, 2015, 07:59:00 PM
Changed the enemy kick sound. There is a little bug though. When I put this on my C7050 cart and reset the first time, the score shows up as "8000" instead of "0000". All subsequent times I turn it off and turn it back on (without reloading it), the score is "0000." Both in Homer and O2EM the score works fine. So I'm wondering what the problem is.


Title: Re: Plumber game
Post by: Chris! on July 23, 2015, 08:18:08 PM
Never mind. I fixed it.


Title: Re: Plumber game
Post by: Rafael on July 24, 2015, 01:09:01 AM
Yes, the new sounds are already better. Iīm not sure if itīs just a personal taste but sound like Select Game and Select Game backward, make the things a bit annoying when overused.


Title: Re: Plumber game
Post by: Chris! on July 24, 2015, 01:32:36 AM
I changed the jumping code. The longer you hold ACTION, the higher you will jump. I also made a few other minor changes.


Title: Re: Plumber game
Post by: Chris! on July 25, 2015, 04:12:06 AM
A few cosmetic changes. Hopefully things look better now. The screen no longer goes black when you hold the fire button upon starting a new game, stuff like that.


Title: Re: Plumber game
Post by: Chris! on July 27, 2015, 09:04:54 PM
Changed the goombas into turtles that face the right way.


Title: Re: Plumber game
Post by: daddy_scott on July 27, 2015, 11:30:34 PM
Can someone post a screenshot or short video of this for those of us who don't do the emulator?  I'm curious about the game.   :D


Title: Re: Plumber game
Post by: Chris! on July 27, 2015, 11:49:48 PM
Here is an earlier version. YouTube: http://www.youtube.com/watch?v=XsOQjzQ9_KY


Title: Re: Plumber game
Post by: daddy_scott on August 05, 2015, 07:11:40 PM
Interesting game.  Thanks for the video.