Ping - A twist on Pong
Posted: Sun Jun 15, 2014 2:57 pm
Hi! I made this little game as kind of a refresher of memory, I guess. Haven't programmed in a while so I set myself a challenge. Well after a day, here it is.
Ping!
It's like Pong, except you control the ball.
The controls are up arrow, and down arrow. They control the ball's height, and that's about it.
If you want to set yourself more/less of a challenge, just go in main.lua, and change paddle1's (left) and paddle2's (right) values, like:
thinkspeed - the time, in seconds, it takes to react to the ball's movement
speed - the vertical speed of the paddle
offset - the distance between the paddle and the wall
The rest isn't very important. But, you can change the ball's:
speed - vertical speed of the ball
xspeed - horizontal speed of the ball
size - width and height of the ball (always a square)
If you wish to use the "advanced" bouncing mechanism on the paddles, go enable gamemode2, which is the first line of love.load().
That's pretty much all, I think. Have a screenshot.
Ping!
It's like Pong, except you control the ball.
The controls are up arrow, and down arrow. They control the ball's height, and that's about it.
If you want to set yourself more/less of a challenge, just go in main.lua, and change paddle1's (left) and paddle2's (right) values, like:
thinkspeed - the time, in seconds, it takes to react to the ball's movement
speed - the vertical speed of the paddle
offset - the distance between the paddle and the wall
The rest isn't very important. But, you can change the ball's:
speed - vertical speed of the ball
xspeed - horizontal speed of the ball
size - width and height of the ball (always a square)
If you wish to use the "advanced" bouncing mechanism on the paddles, go enable gamemode2, which is the first line of love.load().
That's pretty much all, I think. Have a screenshot.