Videopac / Odyssey2 forum

Programming the Videopac / Odyssey2 => Homebrews => Topic started by: Chris! on February 04, 2016, 06:58:25 AM



Title: I Like Bacon
Post by: Chris! on February 04, 2016, 06:58:25 AM
It's definitely been a while, so I thought I'd get out the ol' Odyssey 2 and make a new game for it. First order of business: Finding the power cord for it. Next order: put the game I started working on to the test cart. After I found that wire I had misplaced, I put it on my Odyssey 2. Everything seems to be working just fine (so far.) The game will be a collect-a-thon in the style of Aaron the Aant, but instead of 3d, it's a 2d platform (like Plumber.) Right now, all I have is the elevators working. That took a long time to do. I have the elevators working and a temporary guy sprite stick figure going up and down on it. There are no controls yet. For the bacon, I am going to have the equal sign be pink and use that as bacon strips. Since sprite 0 and 1 are the elevators and sprite 2 is the guy. Sprite 3 will be the enemy trying to get you, but I have yet to work on that. I have attached the first binary file for I Like Bacon, my new game.


Title: Re: I Like Bacon
Post by: Rafael on February 05, 2016, 12:26:48 AM
Thatīs nice for while. But itīs a waste you use sprite to do things that you can do using O2 chars. Try to replace the sprites by o2 squares and keep the sprites for better development of the hero, more enemies or something like that.


Title: Re: I Like Bacon
Post by: Chris! on February 06, 2016, 01:10:26 AM
Doing a row of squares moving up and down would be really difficult for me. I worked on this game for 9 hours last night and I still couldn't get it working the way I wanted to. Plus a few hours today. You can now move the guy around, though. He won't go on to the elevators unless they've stopped on his level completely. Also, he can't jump down the hole unless the elevators have completely stopped. And you don't want to jump into the holes anyway because you can't move left or right while you're falling down and if you fall down the hole at the bottom of the screen you die. How about I use the characters for enemies instead. That would be a lot easier for me to program. And even now I still don't know how to move forward. Should I have an enemy on each level? Should I enable jumping? Should it be like Jumpman where there's bullets coming after you to dodge?


Title: Re: I Like Bacon
Post by: Chris! on February 06, 2016, 10:59:36 AM
This took a few hours to do. I removed the guy and made the elevators squares. No more today, I need sleep. It's 2am here.


Title: Re: I Like Bacon
Post by: Rafael on February 06, 2016, 02:39:59 PM
Of course you can, you are a good programmer, only need to leave the comfort zone. One of the cool things in the Odyssey story how Ed Averett sought to improve their games with each release. Now, you have four sprites at your disposal. If you do not know which way to go in this game, try something inspired by Elevator Action, put love the visuals and sounds and go ahead.


Title: Re: I Like Bacon
Post by: Chris! on February 07, 2016, 09:24:42 AM
I need a way to change an even number into an odd one. It looks as though I'm having trouble with the y position of the guy when he lands on the elevator after falling and he becomes stuck and can't move because he landed when his y position is an even number and it needs to be an odd number.


Title: Re: I Like Bacon
Post by: Chris! on February 13, 2016, 09:56:10 AM
I changed it so the elevator only moves up or down when you are on it.


Title: Re: I Like Bacon
Post by: Chris! on February 13, 2016, 12:25:43 PM
I made it so you can choose what direction you want to go on the elevator when you are on it with the joystick: up or down.


Title: Re: I Like Bacon
Post by: Chris! on February 14, 2016, 01:33:08 PM
Bacon added.
I'm thinking about making the enemy a pig trying to avenge the death of his brethren that got turned into bacon.


Title: Re: I Like Bacon
Post by: Rafael on February 14, 2016, 05:25:15 PM
Bacon added.

You should to try a looking fun char, like Burgertime foods, for instance. It should look close to Krazy Chaseīs Drats.


Title: Re: I Like Bacon
Post by: Chris! on February 15, 2016, 11:54:50 PM
Any pixel artists out there? Could someone design an 8x8 pig for me?


Title: Re: I Like Bacon
Post by: Rafael on February 17, 2016, 11:44:43 PM
A quality 8X8 pig is a hard thing to get.


Title: Re: I Like Bacon
Post by: immergruen on February 17, 2016, 11:46:18 PM
How many colors?


Title: Re: I Like Bacon
Post by: Luciano on February 18, 2016, 04:22:43 PM
Hi, suggestion to highlight with white background and black background...


Title: Re: I Like Bacon
Post by: Rafael on February 18, 2016, 08:14:31 PM
Hi, suggestion to highlight with white background and black background...

Great :D
I liked more the first!


Title: Re: I Like Bacon
Post by: Chris! on February 23, 2016, 02:58:02 AM
I can't put a pig sprite in. Anyone want to help? If not, then I quit because I can't do it.


Title: Re: I Like Bacon
Post by: Chris! on February 23, 2016, 05:26:58 AM
I got it! After fiddling with the code for about another hour. I don't know why it was so hard!


Title: Re: I Like Bacon
Post by: Chris! on February 24, 2016, 11:08:24 AM
New version. This one doesn't work on O2EM, but does work on Homer and real hardware. Spent many hours and many attempts to get it to work on real hardware, and I finally did. The pig can now jump onto different ledges. On O2EM, he only changes ledges once, otherwise the pig will change ledges many times or until you turn the game off. I even got a crude title screen in. I'm quickly running out of room, I have 1,421 bytes used up out of 2,048. There is still no collision detection. Things left to do are put in collision detection and a score. Hopefully I'll have enough room for a score. I am using some variables in equ 050-5f, so unless I can change them and make the game still work, there's probably only room for a score and not a high score.


Title: Re: I Like Bacon
Post by: Rafael on February 25, 2016, 03:38:20 AM
My turn :D
You can use a "=" signal" for bacon and, if your only others objects are the man and the pig, you can use 2 sprites for each.


Title: Re: I Like Bacon
Post by: Chris! on February 25, 2016, 05:26:59 AM
I thought about doing that, but then I figured it would be a whole lot of difficult coding to see which character got touched since the elevators are characters as well.


Title: Re: I Like Bacon
Post by: Rafael on February 25, 2016, 10:47:28 PM
I thought about doing that, but then I figured it would be a whole lot of difficult coding to see which character got touched since the elevators are characters as well.

You have another option: Vgrid as elevator


Title: Re: I Like Bacon
Post by: Rafael on February 27, 2016, 04:28:19 AM
Things you can try (if you want)


1. (in a nice black bground) You have 2 sprites man and 2 sprites pigs, v_grid are the elevators.
2. Man decide to enter in the elevator.
3. Now the 2 man sprites changes to double sized sprites (one for each elevator), youīll have a short animation of elevator closing the door.
4. Now the sprites became the elevator, v_grid=0, on next floor the doors will open and the man will appear etc.


Title: Re: I Like Bacon
Post by: Chris! on February 28, 2016, 03:04:35 AM
New version

I think Rafael's suggestion is cool, but I don't think I can do it (and I'll explain why.)

I added a score and death by pig touch. I noticed when the bacon was up on the top, it was blinking if you were below it and riding the elevator up. So I had to simplify the elevator. Since what I had going was too much, I doubt I could fit anything that fancy in without the top of the screen blinking to death. And I already have so many variables I ran out of room for the high score variables and started using them as regular ones. This is turning out to be more complicated than I first thought it would be. Of course, some ideas have changed (like falling off the elevators and having them move by themselves), but if I were to take out that code, the game would not compile properly. So this is what it looks like now.


Title: Re: I Like Bacon
Post by: Chris! on February 28, 2016, 05:48:55 AM
Fixed a few bugs and added some yummy strips of bacon to the title screen.


Title: Re: I Like Bacon
Post by: Chris! on February 28, 2016, 12:50:42 PM
High score function added.
Even though I have used only 1,820 or so bytes, I don't have any more room to add things. It took me all night. First I discovered that you can't have characters and quads be on the same y position. Neither can you have 4 quads on the same y position. I had to test it a whole bunch of times and I got this.


Title: Re: I Like Bacon
Post by: Rene_G7400 on February 28, 2016, 11:05:00 PM
The menu screens of my C7060 and C7051 carts consist of 4 quads on each line. You just have to avoid character overlap. That also includes spaces. If you use spaces for some unused quad positions, they are not allowed to overlap with any other quad or character.

The standard high score function of Odyssey2/Videopac games also uses 4 quads.
Code:
0000>?????? 0000

('code' used to avoid smileys)


Title: Re: I Like Bacon
Post by: Chris! on February 29, 2016, 02:09:05 AM
OK, that explains it. I was having character overlap on the spaces which caused a whole bunch of weird issues I was having with the score not working.


Title: Re: I Like Bacon
Post by: Chris! on February 29, 2016, 03:48:46 AM
Extra red and/or green 0s were popping up if I pressed power off and then power back on again that weren't there when I first downloaded the game onto my C7050 cart. So I looked at my code. Looking at it, I made one little change and now the extra 0s aren't popping up any more. At least I discovered something about Soren's sample code, though, that I can change around the numbers and spaces so the code can be on the extreme left instead of near left. That's why it wasn't going to the extreme left: There were spaces there. But now I wonder what would happen if someone were to score more than 9,999 points in my game. Pretty unlikely, but still: There are people who can get a maximum 3 million points on Pac-Man...


Title: Re: I Like Bacon
Post by: Rafael on March 09, 2016, 01:15:01 AM
Pig?


Title: Re: I Like Bacon
Post by: Janzl on March 09, 2016, 06:44:10 AM
Pig?

 :D

Let's call him Videopork!


Title: Re: I Like Bacon
Post by: Chris! on March 09, 2016, 11:25:24 AM
I love that pig! I put him in the game. He needs to be animated though, so a second frame would help.


Title: Re: I Like Bacon
Post by: Chris! on March 10, 2016, 02:42:10 PM
Added Voice support. I fought long and hard with my Voice module which is on the verge of breaking, but it does what I want it to now for testing. I tried to fix my Voice module but I lost the screws that screwed into the holes where screws go. Does anyone know what type of screws will work for it?
And, since the way the code works now, I have to have every sample be in the same bank. I chose E8. Sometimes when I said I wanted it to go to E9, it would disobey me and stay at E8. So to make matters simpler, I just decided to use the same bank for all the Voice samples.


Title: Re: I Like Bacon
Post by: Rene_G7400 on March 10, 2016, 05:31:23 PM
What works for me is sending the Voice bank number twice before sending the sample number to the Voice.


Title: Re: I Like Bacon
Post by: Chris! on March 10, 2016, 07:07:12 PM
Yep, that worked. I wonder what causes it to not read it the first time, though.


Title: Re: I Like Bacon
Post by: Rafael on March 12, 2016, 11:58:36 PM
I love that pig! I put him in the game. He needs to be animated though, so a second frame would help.

I see you already created an animation. ;)


Title: Re: I Like Bacon
Post by: Chris! on March 13, 2016, 08:07:22 PM
I think I'm done with the game. I would have liked to put in a death sound, but it won't let me, so this will have to do.
http://www.atari2600land.com/bacon/ (http://www.atari2600land.com/bacon/)


Title: Re: I Like Bacon
Post by: Rafael on March 21, 2016, 11:03:24 PM
I think I'm done with the game. I would have liked to put in a death sound, but it won't let me, so this will have to do.
http://www.atari2600land.com/bacon/ (http://www.atari2600land.com/bacon/)

I think thereīs some problem with gameplay, actually the player just need to wait the pig move to another floor and get the bacon. ???


Title: Re: I Like Bacon
Post by: Chris! on March 22, 2016, 03:10:17 AM
Yeah, I thought that too. I guess it was just a programming exercise so I don't forget how to program the Odyssey 2. Unless someone has an idea of how I can spice up the gameplay.


Title: Re: I Like Bacon
Post by: Chris! on April 01, 2016, 04:06:57 PM
It took quite a long time to get it so it works on the Voice module, but I added a timer. Perhaps this will make the game harder?


Title: Re: I Like Bacon
Post by: Chris! on April 02, 2016, 07:20:19 AM
I figured out there was too much stuff going on in the loop, so I redesigned the guy, took out his head and made it part of the sprite, changed his body from a T to a +, and did a few other things as well.


Title: Re: I Like Bacon
Post by: timdu on April 02, 2016, 05:58:33 PM
Instead of a timer in the game, could you make it so that there is a pig on each floor....  a pig on floor 2, floor 3, and floor 4?   Are you out of sprites?

It would sort of be similar to the fireballs in the second level of the Atari 2600 version of DONKEY KONG...



Just an idea,

​Tim


Title: Re: I Like Bacon
Post by: Chris! on April 03, 2016, 03:14:50 AM
The maximum number of sprites is 4, so the answer is I can't have a pig on each floor.


Title: Re: I Like Bacon
Post by: Pickaxe Brad! on April 19, 2022, 05:16:02 AM
Six years later...

The Odyssey2 was popular at my family's Easter gathering this year.  We even played an "I Like Bacon" tournament just before Easter dinner (which was ham).  The winning score 91.


Title: Re: I Like Bacon
Post by: Chris! on April 19, 2022, 04:07:36 PM
Wow! Glad to see my games being enjoyed. I don't know if I even finished this. The computer I had it on died so unless it's on my website somewhere I don't have it.


Title: Re: I Like Bacon
Post by: Pickaxe Brad! on April 19, 2022, 05:38:08 PM
Wow! Glad to see my games being enjoyed. I don't know if I even finished this. The computer I had it on died so unless it's on my website somewhere I don't have it.

You posted a link to your website above.  It looks like you posted the source.  http://www.atari2600land.com/bacon/