Sorry, but I've never ever evar evur used atan or about half of those math functions. I mean I know sqr. abs. and sin and cos, but other than that erm...can you do it?
For the walls the ball reflection is fine - but for the paddle, considering 1. Its not just in 90, 180, and 0 degree angles and 2. This is not using directions at all, only velocity. Not even I hiddenly set it not to turn, although it does. Its purely x and y vel. Its based off of my Ball environment code, and thats based off of code from Paddle2See's minigolf game, that he made a long time ago.
A test for one of the modes for a Pong game I'm making. Tell me what should be fixed and what not, as I want this to be the best as possible. Suprisingly enough, this senses better online.
Controls: The paddle moves the the mouse, and it automatically locks on. If you want to stop it from turning, click and hold for the desired amount of time.
How this works: Basically there are 6 main sprites. The paddle, the ball, and the 4 sensors. These sensors, are not average sensors you put around the ball, each sensor has black lines telling where the sides and walls of everything are. If the ball is touching one of them, it will bounce in the acoording direction. The formula is complicated, but definately doable. Took a while for me to figure out. But credit to Paddle2See. The count down uses ghost effects, and yeah.
There are some problems though. One is that it doesn't respond that well, because it broadcasts whenever the ball hits a wall or the paddle. Also the Paddle sometimes freezes, and the ball may go through the walls. So not perfect. I have ideas to improve which I'll work on.
Hiscore: Me with 2. Not easy to beat lol. One bounce at the middle-top, and another at the bottom-right.
Comments
You need to be logged in to post comments
Add a Comment
82! nice game
I got a highscore of 1 (hit at bottom right)
I got it in one
Nice :)
54. lol!
Lol. It takes practice and time.
(view all replies)How can you tell your score?
It says it on the middle-left (it should), basically each time it bounces off the paddle it records it and adds it to the variable.
(view all replies)Ball reflection isn't perfect - but awesome concept! For ball reflection you need to set the outgoing direction to (normal - Incoming direction).
Sorry, but I've never ever evar evur used atan or about half of those math functions. I mean I know sqr. abs. and sin and cos, but other than that erm...can you do it?
For the walls the ball reflection is fine - but for the paddle, considering 1. Its not just in 90, 180, and 0 degree angles and 2. This is not using directions at all, only velocity. Not even I hiddenly set it not to turn, although it does. Its purely x and y vel. Its based off of my Ball environment code, and thats based off of code from Paddle2See's minigolf game, that he made a long time ago.
(view all replies)