Computer Science Canada

Air Hockey (Pong Advanced)

Author:  Krabjuice [ Fri Jan 30, 2004 7:00 pm ]
Post subject:  Air Hockey (Pong Advanced)

Lookie, my first running game. Its just a beta. I need to add a few things, and redo a few things. But, all in good time.

Author:  Paul [ Fri Jan 30, 2004 7:06 pm ]
Post subject: 

I scored, then the multicolored AI guy stole the puck, and I never got it back again Sad Confused Mad Crying or Very sad
Oh yea, just to tell you, I saw something weird, if you hit it from a certain angle, it accelerates like 3 times more than usual.

Author:  shorthair [ Fri Jan 30, 2004 7:07 pm ]
Post subject: 

When you say a few things you men an , entire AI system ( you dont have one yet , unless thats like super n00b mode ),and proper physics and coorinate handling , , but because you stated it was BETA , its flippin awsome , this will be a rockin game when its done , good luck with your project Very Happy

Author:  jonos [ Fri Jan 30, 2004 7:08 pm ]
Post subject: 

that's really cool, but the guy in one player does move... Crying or Very sad

Author:  Krabjuice [ Fri Jan 30, 2004 7:08 pm ]
Post subject: 

Actually, there isn't an AI.. yet. I'm actually having problems having both paddles move at the same time with two different key inputs.
The puck is actualy under the other paddle, just move by force, or play with 1 player.

----

Update. I just added an AI for 1 player! Although, Chuck, the puck bouncing AI pattle is fast...and precise, he is capable of defeat.

Author:  jonos [ Fri Jan 30, 2004 7:36 pm ]
Post subject: 

that's really good now, but really hard, though if you get the puck behind him, you just need to score from there Very Happy . you should try to make it so the puck can't go so fast cuase sometimes i can hardly see it, and also (one more thing), sometimes i try to hit the puck by moving the paddle forward, but then the puck goes behind me. oh ya, and i can't see the text i inputted at the begining (choosing the players). anyways, really great job and a lot of fun Very Happy

Author:  Krabjuice [ Fri Jan 30, 2004 7:53 pm ]
Post subject: 

Well, actually, the reason why the puck goes past you is because of the speed. Its like when you actually play, and the puck goes uber fast, you have a tendancy to jump, and lift your pattle above the puck.. then it goes in.

(In other words, the speed of the puck can exceed the width of the paddle per cycle.)

Also, if you time it correctly, you can actually have the puck go through the pattle, and get a boost.
One of my favourite stratagies at the table was letting the puck bounce of the backboards on my side slowly, then, I would raise my pattle above the puck, and spank it on the back with the edge of my pattle...like I was pounding it with my palm. That made the puck dance across the table. Scared the hell out of my friends, and hurt my wrist.

(Same as the former, but the puck is drawn inside the paddle, and is launched)

Author:  jonos [ Fri Jan 30, 2004 8:26 pm ]
Post subject: 

well, if you put it that way that you meant to do it, then... That is the best table hockey game in turing i have seen, and probably one of the most fun to play (seriously, I have played it for probably longer than any other game in turing i've seen so far). and with your explanation for some things, i am off to play your game again with a better strategy... Very Happy

jonos super edit:
yeah, i just lost 8 to 34 against the AI Crying or Very sad

Author:  poly [ Fri Jan 30, 2004 8:27 pm ]
Post subject: 

Quote:
the puck goes uber fast, you have a tendancy to jump, and lift your pattle above the puck.. then it goes in.

a tendancy to jump? hmmm when i play i have never done that... neither has any of my friends.
I found the game a bit annoying as half the time when i went to hit the punk i kept going threw it

Author:  Paul [ Fri Jan 30, 2004 9:23 pm ]
Post subject: 

Ha! Un-Pro! I once hit a puck so hard, it bouced into the wall and broke.

Author:  jonos [ Fri Jan 30, 2004 9:28 pm ]
Post subject: 

ya, well in keeping the posts off-topic I must reply:

I once strained my arm trying to reach the puck and had to go to the hospital, as well I have also accidently let go of my paddle and hit someone in the face... Shocked yeah i know... i suck

the game:
I found that if i didn't try to hit the puck so hard, then I could hit it forward most of the time, as well if a puck was moving vertically up and down, then I would just try to shoot it really hard towards my end and it would go to the other end really fast, which is really cool, cause you can use different strategies playing the game.

Author:  Paul [ Fri Jan 30, 2004 9:30 pm ]
Post subject: 

I dunno, I've only gotten to 1 to 0 with this game, once I score, I never get the puck again.

Author:  shorthair [ Fri Jan 30, 2004 10:02 pm ]
Post subject: 

yeah , so i decided that instead of scoring on his goal , to score on my own that way you eget to place again , and you can haeve target practise

Author:  Krabjuice [ Fri Jan 30, 2004 11:14 pm ]
Post subject: 

paulbian wrote:
I dunno, I've only gotten to 1 to 0 with this game, once I score, I never get the puck again.


The link above has the updated version, which should solve that problem.

-------

Oh, and more tales from my table hockey experience. That little trick I described eariler.... Don't use it at your own table, it takes alot of practice, and if you miss you put a damn big dent in your table. (>_<) But, once you master it, you can actualy flick the puck at your opponent. Needless to say, I always come out the winner.. even if I loose.

Author:  Cervantes [ Sat Jan 31, 2004 10:36 am ]
Post subject: 

I dislike the fact that it can go through you... I personally never jump my paddle over the puck when its going fast...

good start though! keep working on it and It'll get really really good!

Author:  Paul [ Sat Jan 31, 2004 12:46 pm ]
Post subject: 

Wow! great update, Im really enjoying this game now, great work!

Author:  josh [ Fri Feb 06, 2004 7:52 pm ]
Post subject: 

Not Bad but when the puck keeps going through my paddle. Other then that not a bad game.

Author:  Andy [ Fri Feb 06, 2004 8:00 pm ]
Post subject: 

ur ai is too simple.. it wins everytime so there is no point... for a game like pong, having a perfect ai is easy... having a good one with error percentages that doesnt just follow the ball up and down is quiet hard

Author:  Krabjuice [ Fri Feb 06, 2004 8:15 pm ]
Post subject: 

Don't get to hasty, i'll implement somthing later; meanwhile I hardly have any free time with all my homework (sci, math, eng)

Author:  Cervantes [ Sat Feb 07, 2004 10:01 am ]
Post subject: 

the ai doesn't win everytime... i beat it 5-1... sometimes, because all it does is follow the balls x coord, if you hit it behind it so that it'll bounce back towards it it will sometimes hit it in its own net Razz

I would suggest fixing the bugs such as jumping over it before you impliment any changes into the AI.

Author:  Krabjuice [ Sat Feb 07, 2004 6:30 pm ]
Post subject: 

Last time I worked on it, I improved the hit locations of the paddle, (which should eliminate the pass-through problems) also i'm going to add a featrue to adjust the difficulty of the AI. Also, if i give the AI a random percenage to hit, it will stutter. In addition, i'll slow down the speed of the AI paddle by using an equasion from Dan_Shadow's key movement tutorial.

Here, let me explain the problems with the puck passing-through. Since the puck can move at up to 20 pixels a frame, it has a tendancy to draw itself behind, or within the paddle. When it lands in the right spot in the rear area of the paddle, it touches the rear hit-location and rockets the puck backwards. I'm going to reduce the max speed and the size of the rear hit pannel, so it doesn't make any odd bounces, and increase the forward hit location. If it draws within the puck, it will get shot forward. or off the sides toward the opposing net.

Author:  Cervantes [ Sat Feb 07, 2004 6:38 pm ]
Post subject: 

well I don't know how you coded it due to the EXEness of the file Eh
however, to reduce the frequency that the puck goes through the paddle you should make shorter delays and smaller xchange and ychange variables. also a max speed would be helpful Smile
I wonder.. I doubt it, but this would solve your problem. Find someway to make it so that the mouse speed of the user's comp is slowed down while the program is running Smile

Author:  Krabjuice [ Sat Feb 07, 2004 6:41 pm ]
Post subject: 

Cervantes wrote:
well I don't know how you coded it due to the EXEness of the file Eh
however, to reduce the frequency that the puck goes through the paddle you should make shorter delays and smaller xchange and ychange variables. also a max speed would be helpful Smile
I wonder.. I doubt it, but this would solve your problem. Find someway to make it so that the mouse speed of the user's comp is slowed down while the program is running Smile


Actually, there is a max speed variable for the puck, one for each player. Its normally 5 pix/frame, but when a powerup is activated, it boosts to 20.

Author:  Cervantes [ Sat Feb 07, 2004 7:18 pm ]
Post subject: 

hmm thats interesting.. must be a newer version Smile

and actually by speed limit I ment the speed of the puck :/

Author:  Maverick [ Sun Feb 08, 2004 1:34 pm ]
Post subject: 

Pretty good game, its just the puck kinda goes thru ur paddle.

Author:  the_short1 [ Sun Feb 08, 2004 6:18 pm ]
Post subject: 

Great job... BETA is pretty good... i working on my 3rd beta of pacman right now..(Implementing Super Eating DOTS)......cant wait for Air Hockey to be final Version.......

PS>>>> a good suggestion.,.. REMOVE ur signature from all your posts except your first one so this doesn;t become a 5 page Topic...
especialy if u have a big pic like me HEHE!!!

Author:  the_short1 [ Sun Feb 08, 2004 7:41 pm ]
Post subject: 

Try this out..... it would be cool if your program could customize the color of each Paddle, table Etc.... This program is from Microsofts Best Of Entertainment Pack3, If you want all the games just pm me and i give you the link...(Like Tetris,Chips Challenge,Ski Free,jezz ball)..if you right click on something it will enable you to change the color of that object..... i was thinking you could put a menu item for Color Options...at start

either way your program will rock after your done...


YAY!!!!! i think Hacker Dan fixed my uploading problem...!!!!! GJ DAN


: