Videopac / Odyssey2 forum

Programming the Videopac / Odyssey2 => Homebrews => Topic started by: Chris! on November 21, 2021, 07:46:26 PM



Title: A better basketball game
Post by: Chris! on November 21, 2021, 07:46:26 PM
I always thought Basketball for the O˛ could look better. So, in the vein of "Golf Tournament", I decided to take a stab at making a better basketball court. You can move the guys around and the green guy is actually dribbling the ball, but that's as far as I have so far.

Please note that the reason I make all these games I make is because I have no life and CAN sit at the computer all day every day just coding away. Also, if I didn't, all I'd do is just sit and watch TV. But there's never anything good on, so I'd just watch my DVDs over and over again until the laser broke.

Anyway, let me know what you think.


Title: Re: A better basketball game
Post by: immergruen on November 21, 2021, 07:57:07 PM
I really appreciate your contribution for the community, but feel kind of sad reading this.
Maybe we can have a beer one day somewhere and spend a cheerful and memorable night!


Title: Re: A better basketball game
Post by: Chris! on November 21, 2021, 09:26:58 PM
What I meant to say was nobody is forcing me to work on Odyssey 2 projects all the time. In case people were wondering why I'm making so many. I do it for the same reasons as everyone else: love. It's just that I tend to make more stuff than other people do.


Title: Re: A better basketball game
Post by: Pickaxe Brad! on November 22, 2021, 04:53:18 AM
You've already addressed the three biggest issues with the game:
Dribbling +1.
3D court +1.
A net (instead of making the ball go through the wall to count) +1.

All that's left is allowing scores 100 and higher.

A Better Bowling! / Better Basketball! cartridge is just what we need...Please tell me you're going to fix the bowling game as well.  I always wanted a version of Bowling! with visible pin action and correct strike/spare scoring.  To help out mocked up a BB!/BB! box for you!

Also, if I can get in on that beer night, I'll buy the first round.


Title: Re: A better basketball game
Post by: Rafael on November 22, 2021, 04:55:42 AM
Interestingly, I started something, both for Basketball and for bowling,
but I don't know if I will work on it. In any case, any single player sports game is welcome


Title: Re: A better basketball game
Post by: Chris! on November 22, 2021, 05:19:29 PM
I was going to make this a 2-player game. Anyway, I noticed something. The ball is a character. The nets are characters. If characters overlap, funky things can happen with the screen. So I had to replace the nets with sprites. All the sprites are used up now, but it looks a little better.


Title: Re: A better basketball game
Post by: Chris! on November 22, 2021, 07:34:51 PM
I suddenly lost the ability to do this. I want to have ballx be the same value as player2x and I can't. I tried this, which I copied and pasted from another game I made, and it won't work in this code.
Code:
mov r0,#005h    ; get player 2x
movx a,@r0
mov r1,#031h    ; get ball x
;add a,#0          ; don't add anything yet
movx @r1,a       ; put player2x data in register 031h
It won't work. How do I do this?


Title: Re: A better basketball game
Post by: manopac on November 22, 2021, 08:15:40 PM
did you enable exram before trying to copy values in exram ?


Title: Re: A better basketball game
Post by: Chris! on November 22, 2021, 09:04:31 PM
I don't know.


Title: Re: A better basketball game
Post by: Chris! on November 22, 2021, 09:17:08 PM
I fixed it. r3 is x and r4 is y.


Title: Re: A better basketball game
Post by: Chris! on November 22, 2021, 11:51:25 PM
OK, gang. I got it so you can shoot the basketball. If you miss, either guy can pick up the basketball when it's on the floor with ACTION. A gentle tap will be a gentle shot and if you hold it longer it's a more forceful shot. The green guy shoots on the left side hoop and the blue guy shoots on the right side hoop. I admit the shot arc needs a lot of work. No scoring yet, though.


Title: Re: A better basketball game
Post by: Chris! on November 23, 2021, 10:55:41 PM
Fixed the controls. Apparently everything was wrong with them on a real Odyssey˛, but I think I cleared it up. I have a bug: Sometimes when the player steals the ball, he shoots it at the same time, thus causing the ball to fly out of his hands and on to the floor. That also happens sometimes in a real basketball game, so I'll leave it in. And I got the scores working. You can score over 100 points. Next thing to do is the timer, which will be made up of quads 0 and 1. Perhaps even a quarter number could be displayed as well?


Title: Re: A better basketball game
Post by: Chris! on November 24, 2021, 06:37:26 AM
I put in the clock. Each quarter is 5 minutes. If the score is tied after 4 quarters, then an overtime is 5 minutes. Each additional needed overtime is 5 minutes. Thoughts?


Title: Re: A better basketball game
Post by: Pickaxe Brad! on November 24, 2021, 08:15:03 PM
allowing scores 100 and higher. +1

Exciting that Better Basketball! is taking shape.  Keep up the good work.


Title: Re: A better basketball game
Post by: Rafael on November 25, 2021, 03:41:32 AM
There is a bug. At a certain point, the ball began to travel dagonally until it disappeared from the screen.


Title: Re: A better basketball game
Post by: Chris! on November 25, 2021, 07:54:26 PM
Yeah, I think I'm going to have to give up. Here is the source code in case someone wants to continue work on it.


Title: Re: A better basketball game
Post by: Chris! on January 02, 2022, 12:32:41 PM
I think I fixed the game. There was a problem with the other guy picking up the ball if either action button was pressed. I have never ran into the bug Rafael got, though, so it may exist. But not in O2EM.


Title: Re: A better basketball game
Post by: Chris! on January 03, 2022, 10:41:46 AM
Fixed some stuff.
+ player can now get the ball when it's dead even if the other guy is touching it (the player still has to press fire, though.)
+ player 1 always has their own ball-getting sound and so does player 2.

I've decided to call the game "1 on 1 Basketball" since "Basketball!" was the original Odyssey˛ basketball game.


Title: Re: A better basketball game
Post by: Pickaxe Brad! on January 05, 2022, 01:45:37 AM
I finally got around to playing your latest version.  I like it; it's coming along.

I feel like the shot clock that was in Basketball! was vital to the competitive balance of that game.  This may be less important for your 1 on 1 Basketball because it's possible to steal the ball, but might still be needed.  Just a thought.


Title: Re: A better basketball game
Post by: Chris! on May 04, 2022, 06:43:55 AM
I came back to this game. I had a thought about solving what I was having a problem with. Then things got together until I have this version.
The basketball players had to remove their leg walking animation. Putting it in was causing problems for some reason, so I had to cut it.
One thing to add still is the shot clock. I don't know how I am going to do this. I think I'll use characters 4 and 5 to display a 24-second shot clock. And I guess when it gets to 00, the ball will be dead. I'm just thinking out loud here.


Title: Re: A better basketball game
Post by: Chris! on May 04, 2022, 11:43:00 PM
Added a shot clock and fixed the shooting problem I discovered.


Title: Re: A better basketball game
Post by: Chris! on May 06, 2022, 05:10:22 AM
I animated the guys so it looks like they're actually walking. I was up until 4:30a.m. last night working on this, so let me know if you find a bug. I never did.


Title: Re: A better basketball game
Post by: Chris! on May 09, 2022, 05:19:14 AM
The game is just about complete. Let me know via e-mail (my e-mail address should be in my profile) if you want to test the game. Today I made a title screen for it.


Title: Re: A better basketball game
Post by: Chris! on May 13, 2022, 01:41:36 PM
Made some changes:

+ strength meter now working. The longer you hold the action button, the more poewerful your shot will be.

With this almost done, I'm contemplating making another sports game. Perhaps "1 on 1 Soccer". Bowling would be too hard.


Title: Re: A better basketball game
Post by: Chris! on June 14, 2022, 10:20:21 PM
Since this is most likely not going to be published, I just thought I'd share a (mostly) complete version of "1 on 1 Basketball."


Title: Re: A better basketball game
Post by: cjherr on June 16, 2022, 11:35:04 PM
Thank you, sir.


Title: Re: A better basketball game
Post by: polluks on June 18, 2022, 11:57:04 AM
Thanks! You cover reminds me of Beavis and Butt-Head :D