Omnimaga

Calculator Community => Other Calculators => Topic started by: ClrDraw on November 19, 2013, 10:34:26 pm

Title: Pong - ClrDraw
Post by: ClrDraw on November 19, 2013, 10:34:26 pm
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=870

Pong, by ClrDraw (November 2013)

This is a simple pong game with three difficulty levels and the option to play single player (see how long you can last) or multiplayer against a friend!

(http://img.ourl.ca//Pong.gif)
Title: Re: Pong - ClrDraw
Post by: XiiDraco on November 23, 2013, 11:44:56 am
Hmm cool. I made something exactly like this before, anyway, are the angles of the ball bouncing off of certain objects random, calculated or are they just defined?
Right now it looks like ball will go from moving horizontally (diagonal) and then when the paddle hits it it just goes completely straight vertical again.

If you want the ball's bouncing to be calculated then you can change the velocity of the ball based upon where it hits on the paddle. I believe in the original pong, they had it so the ball would go farther left or right depending on how far it was on the paddle. The wall bouncing looks good though.

Also if you are going to make the ball change on where it hits the paddle, you might want to make it ADD the change to the current velocity or it will just instant change from hard right to hard left. (looks funny that way)
Title: Re: Pong - ClrDraw
Post by: ClrDraw on November 23, 2013, 04:18:40 pm
It's random: 1, 2, or 3 pixels left or right. It would be nice if I could make it so it didn't go to the middle so often though.

Quote
Also if you are going to make the ball change on where it hits the paddle, you might want to make it ADD the change to the current velocity or it will just instant change from hard right to hard left. (looks funny that way)
that's a good idea.
Title: Re: Pong - ClrDraw
Post by: Dapianokid on November 23, 2013, 05:06:50 pm
Dude the physics behind this game are deceitfully harder to accurate replicate than it seems. Good luck. Xii is barely scratching the surface.
Title: Re: Pong - ClrDraw
Post by: ClrDraw on November 23, 2013, 07:17:47 pm
I was planning to leave it like this, should I try making it more like real pong?
Title: Re: Pong - ClrDraw
Post by: XiiDraco on November 23, 2013, 07:44:00 pm
Dude the physics behind this game are deceitfully harder to accurate replicate than it seems. Good luck. Xii is barely scratching the surface.
Yeah, I know XD.
I was planning to leave it like this, should I try making it more like real pong?
Definitely work on the physics and make it like the real pong. That would be really impressive.
Title: Re: Pong - ClrDraw
Post by: ClrDraw on November 23, 2013, 08:24:20 pm
Okay, I'll look into it.