Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Ashbad on February 04, 2011, 06:30:57 pm

Title: BimBall -- AKA super wallball
Post by: Ashbad on February 04, 2011, 06:30:57 pm
Basically, I was bored in science today, so I made a game using my famous ball physics -- except in version two.  Basically, collision detection is perfect and pretty fast.  Instead of the old version, which was basically just checking boundaries to bounce off of, this one checks every single location along a movement path to see if it's to bounce or not.  The reason I didn't upload it yet is because it's only 50% done.  I plan to upload it tomorrow, and it should be all done.


Basically, the game works like this:  You are a triangle, and after getting sooooo beast at playing Wallball 83+ (found in the omnimaga archives, by me) you decide to up the competition and compete in the world famous BimBall Games!  Of course, you notice enemies in black with great AI routines as a challenge -- and you realize this is by far a step up from wallball.  You even notice Ashbad's new unique collision detection routine :) 

...But, are you up for the challenge?


The rules are as applied:

1. Each player starts each round at opposite sides of the field, and the ball falls from the middle of the screen.  The first person to touch the ball gets 2 points added to their score.
2. Points can also be scored by bouncing the ball into a Net at either side of the field.  Each score in a net is 10 points.
3. Points scored while the player is jumping in mid-air are multiplied by 150% before being added to the player's score.
4. If the human player touches the AI controlled player, it is considered a "Drawn Round", and another round starts.  No points are added to either side.
5. A new round is started either after a Net score is made by either player or a "Drawn Round" is applied.  this then triggers rule #1.



And here is what the field basically looks like, and yes the words are in mid gray in the program:

PS: This is almost EXACTLY what it looks like, just that the text is a bit messed up (paint is bad at making Ti83+ fonts :P)
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 04, 2011, 08:18:45 pm
Sorry, I accidentally posted a post that said "h" a second ago -- I was trying to say something like "hell yeah I'm 80% done now" and some more stuff, but...  screw IE.
Title: Re: BimBall -- AKA super wallball
Post by: DJ Omnimaga on February 04, 2011, 10:56:31 pm
I hope you weren't just making the thread show up on OmnomIRC to make people reply, because in the trash bin there are two such posts, which are 30 minutes apart. Most people were probably busy with other threads (there are many). I myself was sleeping for a bit since I suddently felt tired for some reasons. I also can take 2-3 days to reply to topics.

This looks nice, so it will kinda be like basket ball, right?
Title: Re: BimBall -- AKA super wallball
Post by: ztrumpet on February 04, 2011, 11:06:33 pm
This sounds pretty neat.  I'm looking forward to it. :)
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 05, 2011, 02:54:58 pm
it's almost done now! :D

Just have to add in an enemy AI.  The new physics are awesome BTW.
Title: Re: BimBall -- AKA super wallball
Post by: DJ Omnimaga on February 05, 2011, 11:20:49 pm
I'm glad to hear :D. I hope you don't have too many problems with the AI. Any plans for multiplayer, by the way?
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 06, 2011, 01:40:04 pm
Not real multiplayer, unfortunately... :P

Though.. I'm am testing a 2 on 2 team version, with 2 AI's versus you and another AI... ;)
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 07, 2011, 12:08:30 pm
In about 3 hours I plan to post an alpha here for BimBall.  I just need to polish the AI a little bit more just to make it somewhat competitive (so far, it's pretty good, but I as the programmer knows its every move ;D)
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 07, 2011, 03:13:41 pm
wow, I'm actually quite impressed with my AI.  It doesn't show it in this screenie unfortunately, but in real life it just kicked my ass 10-3 in a game O.O

of course, I'm gonna have to make it have easier levels and stuff, but I have TONS more planned to be added...  >:D >:D >:D (secret for now, you'll just have to wait ;))

Enjoy, executable is in the .zip file, along with the .gif.  I bet even on hardware my AI could beat you so bad ;D

EDIT: I'm white, the AI is black.
Title: Re: BimBall -- AKA super wallball
Post by: TsukasaZX on February 07, 2011, 03:48:44 pm
Hey, that's pretty cool! :D
Title: Re: BimBall -- AKA super wallball
Post by: ztrumpet on February 07, 2011, 03:56:47 pm
That looks pretty neat.  Nice job! ;D
Title: Re: BimBall -- AKA super wallball
Post by: Happybobjr on February 07, 2011, 03:58:14 pm
I hate internet explorer...  But what I can see great job.
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 07, 2011, 04:13:46 pm
yeah thanks I guess it's cool
Title: Re: BimBall -- AKA super wallball
Post by: Builderboy on February 07, 2011, 06:41:00 pm
That looks excellent! :D Love the physics you implemented :) although it looks like it behaves slightly weird in the basket?  I saw it hit the side of the basket and then rebound like it hit the floor?
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 07, 2011, 06:42:53 pm
yeah, I need to make it check for more pixels against the sides of the ball x.x

but great to see you like it :D
Title: Re: BimBall -- AKA super wallball
Post by: Builderboy on February 07, 2011, 06:46:39 pm
Yeah with a ball that size it gets crazy I imagine x.x One of the reasons I never really developed a fully flexible ball physics engine myself.  Congrats on getting the physics as awesome as you did :D
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 07, 2011, 07:31:02 pm
thanks for the complements :D

also,
I'm now thinking of adding 2 on 2 mode, switch-activated platforms, loading a level design from a pic var, and a few other things :D
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 10, 2011, 12:17:57 pm
I plan on releasing version 1.0 later today.
Title: Re: BimBall -- AKA super wallball
Post by: Happybobjr on February 10, 2011, 03:52:42 pm
Sounds great.
As a side note, have you considered scrolling edges?  or would that take to much memory?
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 10, 2011, 03:54:50 pm
I won't add scrolling edges to this game, but I'm saving that for my ball "Toy" game, which features a gigantic world to play around with a ball in :)
Title: Re: BimBall -- AKA super wallball
Post by: Happybobjr on February 10, 2011, 04:04:21 pm
I won't add scrolling edges to this game, but I'm saving that for my ball "Toy" game, which features a gigantic world to play around with a ball in :)

sounds similar to what I was messing around with today.  I am having fun learning about tile mapping.  The way i do it is to have the world scroll and the character will stay in one place :)
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 10, 2011, 04:09:31 pm
I always liked that method too :) rather fast and a bit quicker to code.  Right now my challenge is getting ti to smoothscroll with the character moving fowards-backwards nearer to the edge.

Also, I guess I didn't explain what is in version 1.0:

-Sports announcer after each round
-instant replay letting you look at the last 20 frames before the last score
-A decent title screen, options screen, and info screen
-you can actually win the game now (takes ten scores)
-fixed a few bugs
-etc.

the replay is the coolest though :)
Title: Re: BimBall -- AKA super wallball
Post by: Happybobjr on February 10, 2011, 04:12:03 pm
I always liked that method too :) rather fast and a bit quicker to code.  Right now my challenge is getting it to smoothscroll with the character moving fotwards-backwards nearer to the edge.

Also, I guess I didn't explain what is in version 1.0:

-Sports announcer after each round
-instant replay letting you look at the last 20 frames before the last score
-A decent title screen, options screen, and info screen
-you can actually win the game now (takes ten scores)
-fixed a few bugs
-etc.

the replay is the coolest though :)


How do you have the replay coded?  Is it 20 767byte pieces of memory?  (happybobjr hopes not)
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 10, 2011, 04:15:48 pm
it does require about 14K open RAM, but it's safecoded to tell you when you're getting near low RAM and if you have enough to allow playing of movies.  It's worth the memory however, as it is REALLY cool... :)

and also, the program can be ran from the RAM nostub and still have enough room for the replay data.
Title: Re: BimBall -- AKA super wallball
Post by: Happybobjr on February 10, 2011, 04:56:05 pm
it does require about 14K open RAM, but it's safecoded to tell you when you're getting near low RAM and if you have enough to allow playing of movies.  It's worth the memory however, as it is REALLY cool... :)

and also, the program can be ran from the RAM nostub and still have enough room for the replay data.

Could this cause "wear and tear" on the memory though? (question directed twords everyone)
Maybe have a list of all previous commands and reverse engineer with current variables to be smaller?
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 10, 2011, 04:57:17 pm
it would cause wear and tear like the same as running a program (all it does it creat one appvar and keep it for the duration of the game, writing only to that and rewriting to earlier segments when you go over the edge of the memory)

so no worries :)
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 10, 2011, 07:49:22 pm
might as well post 1.0:

EDIT: reposted in another reply.
Title: Re: BimBall -- AKA super wallball
Post by: Happybobjr on February 10, 2011, 07:52:07 pm
holy cow,  the replay really is amazing looking.
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 10, 2011, 07:54:30 pm
thanks ;D

I got the idea of it from watching football last weekend, I thought "hey that in a calc game would be awesome!"

that and the commentator give it a more sporty feel :) though the commentator only says like 10 different things right now, I intend to add at least 100 more :P then it's really realistic

EDIT: also, maybe even the commentators marking up the "field" like in football to show motions ;D and also maybe a second replay option to replay at full speed before replaying in slow-mo

and I hate to judge my own games, but this one is my most addicting game ever ^-^ played it for an hour stright during science today :)
Title: Re: BimBall -- AKA super wallball
Post by: ztrumpet on February 10, 2011, 09:45:00 pm
Wow, that replay looks awesome!  I wish I had the time to put this on my calc; I'm sure once I get it on there I'll play it a lot. :D
Title: Re: BimBall -- AKA super wallball
Post by: Madskillz on February 10, 2011, 10:12:26 pm
I must say that replay is top notch. I am curious to how you pulled it off. It really adds a nice touch. Did you store the player's like last five positions as well as the ball's? 
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 11, 2011, 01:21:53 pm
last 20 actually :)
Title: Re: BimBall -- AKA super wallball
Post by: Munchor on February 11, 2011, 01:22:59 pm
Ashbad, your GIF and ZIP was deleted, it seems, please reupload...
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 11, 2011, 01:24:30 pm
it was? :/

kk, I can;t reupload until I get home from school in about an hour though D:
Title: Re: BimBall -- AKA super wallball
Post by: Munchor on February 11, 2011, 01:25:03 pm
it was? :/

kk, I can;t reupload until I get home from school in about an hour though D:

Too bad, we'll have to wait, but I'll check it out later then.
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 11, 2011, 01:25:58 pm
kk

EDIT: typical rick astley concert: (no idea why I ever posted this O.o)

(http://www.gifsoup.com/imager.php?id=590683)
Title: Re: BimBall -- AKA super wallball
Post by: Builderboy on February 11, 2011, 01:32:25 pm
Wow you store 20 picture sized files for the replay?  Wouldn't it be like 9000 times more memory efficient to store the XY position of the ball and 2 players (overall 6 bytes) and then replay that?  And faster as well for storage
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 11, 2011, 01:33:42 pm
yeah, that's what I finished today, and will post in 1.1
Title: Re: BimBall -- AKA super wallball
Post by: Builderboy on February 11, 2011, 01:37:16 pm
yay :D Are you gonna increase the replay length in addition?
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on February 11, 2011, 01:39:07 pm
I could, but 20 frames is already pretty long replay O.O
Title: Re: BimBall -- AKA super wallball
Post by: Builderboy on February 11, 2011, 01:40:06 pm
Ah, wasn't sure of the framerate so i didn't know how long it was ^^
Title: Re: BimBall -- AKA super wallball
Post by: Munchor on February 13, 2011, 10:22:53 am
So... Ashbad? When are you posting the game and screenie again?
Title: Re: BimBall -- AKA super wallball
Post by: DJ Omnimaga on February 14, 2011, 01:09:27 am
Yeah I was wondering that too, also he didn't post in a few days it seems. I hope he didn't ditch calc stuff again like he did for a while during Christmas when he got his iPad. :S
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on March 18, 2011, 03:16:19 pm
finally found the original file and screenie!  attached.
Title: Re: BimBall -- AKA super wallball
Post by: Munchor on March 18, 2011, 03:27:01 pm
Ooooh Ashbad, looks nice! I like the design, but the title screen, I think, could be improved =D
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on March 18, 2011, 03:30:32 pm
yeah, I was gonna put in a bouncing ball, but this was a test to see how fast I could speed-code a game.  this was made in exactly 30 minutes during my science class ;)

EDIT: for some reason it's going really slow, so I'm posting the screenie here in another format to see if it'll go real speed.  If not, maybe I need to record them differently?
EDIT2: a bit faster, but it should be going at a decent rate in firefox :( for some reason it's only this screenie.

(http://www.omnimaga.org/index.php?action=dlattach;topic=6471.0;attach=6656;image)
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on March 19, 2011, 07:00:18 am
NEWS: you can now download 1.1.0 in the downloads section of this site.  Thanks for all support!
Title: Re: BimBall -- AKA super wallball
Post by: DJ Omnimaga on March 20, 2011, 12:21:56 am
I tried this this afternoon and it was quite fun to play. I noticed a bug, though:
Title: Re: BimBall -- AKA super wallball
Post by: leafy on March 20, 2011, 12:28:08 am
I think in the old version there was a way to always force a win without trying. I"ll see if I can replicate it in this version :P
@DJ I think it's using pixel detection so you're essential wallclimbing xD Probably should fix that, Ashbad.
Title: Re: BimBall -- AKA super wallball
Post by: Darl181 on March 20, 2011, 12:47:38 am
EDIT: for some reason it's going really slow, so I'm posting the screenie here in another format to see if it'll go real speed.  If not, maybe I need to record them differently?
EDIT2: a bit faster, but it should be going at a decent rate in firefox :( for some reason it's only this screenie.
If you're using chrome, try recording it at 9 FPS.
Also the game looks awesome./me lost
Title: Re: BimBall -- AKA super wallball
Post by: leafy on March 20, 2011, 01:08:13 am
/me lost
I hate you more every day :P
Title: Re: BimBall -- AKA super wallball
Post by: Darl181 on March 20, 2011, 01:16:58 am
I love you too :P no homo btw
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on March 20, 2011, 10:56:42 am
I tried this this afternoon and it was quite fun to play. I noticed a bug, though:

I actually found that a while ago ^-^

I kept it to see how long it would take someone to find it ;D
No joke.
Title: Re: BimBall -- AKA super wallball
Post by: Deep Toaster on March 20, 2011, 11:02:00 am
Lol, you could do that when playing basketball -- just sit in the basket :P
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on March 20, 2011, 11:02:52 am
^-^
Title: Re: BimBall -- AKA super wallball
Post by: DJ Omnimaga on March 21, 2011, 01:57:11 am
Indeed. That reminds me... would Axe and the calc handle an actual basket ball game well? (I think hockey would be better, tho)
Title: Re: BimBall -- AKA super wallball
Post by: z80man on March 21, 2011, 02:15:30 am
Hockey could look pretty cool, but I'm not so sure if the calc could handle all the ai. Maybe a version with less players such as 3 per side instead of 6. I also thought baseball could be possible too. for basetball, not the actual game, but maybe something more like a free throwing game you sometimes see at arcades where the basket moves around.

and Ashbad, that looks great. I just need to go find my usb cable now.  :thumbsup:
Title: Re: BimBall -- AKA super wallball
Post by: aeTIos on March 21, 2011, 05:52:55 am
IMO, the AI is a bit too good, and you move too slow i think
Nice game, either (I lost)
Title: Re: BimBall -- AKA super wallball
Post by: DJ Omnimaga on March 25, 2011, 06:48:53 pm
z80man yeah maybe. I thought about maybe a port of Ice Hockey, which is also available on 68K calcs. Back in 2003, Spitfire Productions (one of the many ancestors of Revsoft) team had someone working on one, but unfortunately the guy vanished. :(
Title: Re: BimBall -- AKA super wallball
Post by: Darl181 on March 25, 2011, 06:55:05 pm
I was playing this a bit during school today, some thoughts.
• Is there a pause?  If so, could it be moved to MODE?
• Collision detection could use some working on.  Sometimes it would shoot through the bottom or side of the basket and be called a score, also sometimes the ball would fall right through the triangle/paddle/whatever
• Maybe an option to change the max scores, maybe to something like 5 or 20 instead of 10

Nice game ;D
Title: Re: BimBall -- AKA super wallball
Post by: leafy on March 25, 2011, 10:33:24 pm
The ball moves a bit fast for my tastes, but overall it's a very interesting game. Also maybe decrease the chance that the ball will get so low as to bounce into the dead zone to extend gameplay time?
Title: Re: BimBall -- AKA super wallball
Post by: Ashbad on March 27, 2011, 09:11:30 am
Yes, collision detection can be worked on, but that would kill some speed -- and if you know me well, it takes some convincing for me to drop speed in a program >.<

Good to see the feedback -- maybe on monday/tuesday I'll have things like a teacher key, collision detection improvement, max score increase, and a few more things.  If yuo want anything else changed, start posting them after this reply.