Videopac / Odyssey2 forum

Programming the Videopac / Odyssey2 => Homebrews => Topic started by: Chris! on June 05, 2016, 12:15:35 AM



Title: Fight!
Post by: Chris! on June 05, 2016, 12:15:35 AM
I am thinking about programming a fighting game for the Odyssey 2. Would you guys like one, and if so, should it be 2 players or 1 vs. computer? I finished Insecticide, a fighting game using insects, for the Virtual Boy, and would like to "port" it to the Odyssey 2. What say you?


Title: Re: Fight!
Post by: timdu on June 05, 2016, 02:21:08 AM
can you make it so there is an option for the player to play against the computer and also an options for player 1 vs. player 2 ?


Title: Re: Fight!
Post by: Chris! on June 05, 2016, 04:10:12 AM
I guess I could do that. Right now I'm working on the player select screen. I'm finding it really hard to draw insects using 8x8 pixels. Right now I've just got Gi-Ant and Meleedy-bug in the game. I'm going to add Behe-moth and one more for a total of four fighters, like Title Match Pro Wrestling for the Atari 2600.


Title: Re: Fight!
Post by: Chris! on June 05, 2016, 04:44:13 AM
The select fighter screen is mostly done. I have to think of one more insect to carry over from the Virtual Boy version, or create a new insect fighter with a punny name. I can't do Slaying Mantis because the name is too long. I'd like to keep the code simple as possible, which is why I'm using 8x8 characters. Anyway, press left or right to change a fighter. I was going to make this 4k, and have the first 2k be just the fighter selection process and the other 2k be the actual fighting game.


Title: Re: Fight!
Post by: immergruen on June 05, 2016, 06:08:50 AM
a fighting game would be really awesome..i would be completely happy with just a 1p mode it this saved capacity for the actual.game.


Title: Re: Fight!
Post by: Chris! on June 05, 2016, 06:33:46 AM
Well, the select fighter part of the game took less space than I thought it would. I am going to add a title screen, though, but still. I went back through some game I made I remember that had a bee in it, so I used that sprite here and made it Rumble-Bee. I have an idea to add a second sprite for the hands of all the insects be the same if they punch, a single punching sprite. I would like to put the name of the game on the title screen, so I guess I'll call it Insecticide as well. This is going well for just a single day of programming!


Title: Re: Fight!
Post by: timdu on June 05, 2016, 12:24:55 PM
Yes, this is good because the Odyssey2 / Videopac does not have a fighting game ... not even a boxing game.
So I think this will be very nice that you are filling a spot in the library that did not really ever exist.


Title: Re: Fight!
Post by: Rafael on June 05, 2016, 02:47:35 PM
Fun! Do you have some video of Virtual Boy version?
It just reminds me a strategy game I used (and loved) to
play back in the days.

YouTube: http://www.youtube.com/watch?v=dIuAFhkMFf0


Title: Re: Fight!
Post by: timdu on June 05, 2016, 03:23:34 PM
I thought I remembered a BOXING game for the Odyssey2 being worked on at some point...

Yes - our friend Rafael was working on one called "BACK TO THE RING" in 2012

http://videopac.nl/forum/index.php?topic=1976.0 (http://videopac.nl/forum/index.php?topic=1976.0)

Rafael - what are you plans with this? 




Title: Re: Fight!
Post by: Chris! on June 05, 2016, 03:49:24 PM
I finally got a (primitive) title screen working on real hardware. This took about 10 minutes to code, then I discovered it wasn't working on a real O2, so the next 20 minutes was trying to figure out why, moving the code around, etc.


Title: Re: Fight!
Post by: Chris! on June 05, 2016, 04:46:14 PM
Well, I guess this means I don't have to work on this any more.


Title: Re: Fight!
Post by: Rafael on June 05, 2016, 06:06:59 PM
Well, I guess this means I don't have to work on this any more.

I canīt see why.
Odyssey have a card game (Blackjack) it doesnīt mean you canīt work another card game
(Poker, for instance), since itīs totally diferent experience.


Title: Re: Fight!
Post by: Chris! on June 05, 2016, 07:00:07 PM
OK, but I spent the last hour trying to duplicate the fighter select menu for player 2, but I just couldn't do it, so it will have to be a 1 player vs. the computer game.


Title: Re: Fight!
Post by: ScottyDont00 on June 06, 2016, 04:11:41 PM
I am thinking about programming a fighting game for the Odyssey 2. Would you guys like one, and if so, should it be 2 players or 1 vs. computer? I finished Insecticide, a fighting game using insects, for the Virtual Boy, and would like to "port" it to the Odyssey 2. What say you?


Virtual Boy release?


Title: Re: Fight!
Post by: Chris! on June 06, 2016, 10:59:04 PM
Yes, I programmed a version of Insecticide for the Virtual Boy. They're supposed to be releasing it, but the guy who does it apparently keeps forgetting about it so it hasn't been released yet.

As for this version, I seem to keep having trouble. The trouble is, player 1 picks a bug and presses fire. Player 2 however, when the choices scroll by, I want player 1's choice to not be visible and instead scroll to the next version. I have this code in left and right's scrolling:
Code:
mov r1,#fighternumber
movx a,@r1
add a,#001h
movx @r1,a

mov r0,#fighter1number
mov a,@r0
mov r7,a
And that's it. I want to test fighter1number and if it is the same as fighternumber, then add (or subtract) 1 to fighternumber. Fighternumber is the fighter currently on screen, while fighter1number is (supposed to be) the fighter player 1 picked. But I'm having trouble with it. If you download the code, the problems start at lines 710 and 886. I don't know what to do here.


Title: Re: Fight!
Post by: Rene_G7400 on June 07, 2016, 09:29:29 AM
It looks like you've used a movx instead of a mov instruction.


Title: Re: Fight!
Post by: ScottyDont00 on June 07, 2016, 01:23:39 PM
Yes, I programmed a version of Insecticide for the Virtual Boy. They're supposed to be releasing it, but the guy who does it apparently keeps forgetting about it so it hasn't been released yet.


Who is releasing it?


Title: Re: Fight!
Post by: Chris! on June 07, 2016, 08:09:56 PM
Well then how would I check to see if the fighternumber is the same as fighter1number?
Code:
mov r0,#fighternumber
mov a,@r0
add a,#001h ; adjust x pos
mov @r0,a


mov r1,#fighter1number
mov a,@r1
xrl a,r0
jz add_more_right______

@Scotty - UncleTusk was supposed to release it.


Title: Re: Fight!
Post by: Chris! on June 08, 2016, 05:46:35 AM
After a ton of attempts (I've lost count), I think I have it this time. Player 1 can press fire to select a fighter, and player 2 can scroll through the three available fighters. Player 2 cannot choose a fighter, because I haven't got that far yet. Like I said, this took a ton of unneeded time. Let me know if I did something wrong.


Title: Re: Fight!
Post by: Chris! on June 08, 2016, 09:02:40 AM
Noticed the sprites were hard to see for a fighting game, so I doubled the size of them to make it easier to see. I fixed some mistakes I had made but couldn't see with a few spots on the sprites and noticed Rumble-bee's wings were a bit odd, so I redesigned the sprite set. Let me know what you think of the new Rumble-bee.


Title: Re: Fight!
Post by: revivalstudios on June 08, 2016, 09:25:17 AM
Good to see you working on this Chris!

At one point i thought about bringing over Boxing Champ (a game i made for ZX81/CBMPET) to the videopac, as it contains a nice mix of strategy and action to the boxing game, but for now i parked the idea because it might be too similar (in terms of sideview boxing) of Rafaels boxing demo.



Title: Re: Fight!
Post by: Chris! on May 13, 2017, 06:59:03 AM
After a year of not working on this, I decided to start up again. Since this is a 2-player game, I decided that random numbers aren't needed. It would be really hard to program opponent AI, so I'm just making it a 2-player game. And since random numbers aren't needed, I decided to make the game prettier by extending the horizons. I also fixed a few bugs that were in version 8. This will definitely be a 4k game since the titlescreen/fighter select screens are taking up over 1,200 bytes. I'm going for a sort of Title Match Pro Wrestling (for the Atari 2600) sort of game. Like up will be used to kick, and down for punch and Action for jump, etc. Right now you can choose the players and after player 2 chooses his, it just goes back to the title screen since I haven't got that far yet.


Title: Re: Fight!
Post by: Chris! on May 14, 2017, 02:42:07 AM
Spent a few hours on this more today. Notice the size of this latest binary: 4k. That's what most of the work was done: Trying to make it 4k. But I did it. After each player selects his fighter, it goes to the beginning of a fight screen, only the players can't move yet. Now that I have the bulk of bankswitching figured out, I can work on bank 0. (Bank 1 is the beginning bank, I got it to switch to the other bank on my first try!) Bank 0 is where the fight will be. But I need to design sprites, and need some help. After all, how does one draw a punching bee?