Pong (Edited)
Posted: Tue Oct 04, 2011 11:04 pm
EDIT:
Alright, pretty much scratch that last post... I've made a few game-changing improvements that put the previous release to shame... So bye-bye old one.
For starters, the ball is round, I've fixed that pattern thing by simple changing the angle each time the ball has launched - this also raises the difficulty which is veeery nice. Before the velocity wouldn't increase on the ball, now it does. I've added a key for slow mo, I've added a toggle for making the ball a block or a ball and.... i think that's it, did I mention I made a center line?
Here is the list of keys that do stuff:
1) A toggles AI, it resets the level/velocity to one/zero and makes the keys..
2) W/S control the up/down for the second player.
3) Hold M for slow-mo
4) B to toggle block/round on the ball.
5) R to reset to ball... This is because the AI isn't perfect and will jam the ball into the ceiling on occasion... I will remove this if I ever decide to fix the AI.
6) UP/DOWN Controls the player
7) Space pauses
I think that's it for the commands... Here's a picture of the revised version:
Again, I'll upload a video when I feel like it.
Here is the game: http://dl.dropbox.com/u/33322667/pong%200.1.zip
It ended up with 910 lines of code (including whitespace), although a bit of it is stuff that should either be rewritten cleaner, or shortened because I did a few things twice which is why the physics can be goofy at times...
As for general info... It was coded in C++ with SDL, in visual studio 2010 (I'm sold on the IDE btw, this project has won me over... I can't quite say why I love it so much, but it just feels so nice). Probably most importantly is it's my first game... I was messing around with SDL before and made something that resembled a game, but I was just trying to figure out the basics of SDL then... It was really bad. Also, I didn't follow any tutorials for this either, I looked up a couple of SDL references and the occasional C++ one, but for the most part it was all me!
So, what do you think?
Oh, and if you play it... Do please tell what level you make it to! The most I've gotten is 5.
Alright, pretty much scratch that last post... I've made a few game-changing improvements that put the previous release to shame... So bye-bye old one.
For starters, the ball is round, I've fixed that pattern thing by simple changing the angle each time the ball has launched - this also raises the difficulty which is veeery nice. Before the velocity wouldn't increase on the ball, now it does. I've added a key for slow mo, I've added a toggle for making the ball a block or a ball and.... i think that's it, did I mention I made a center line?
Here is the list of keys that do stuff:
1) A toggles AI, it resets the level/velocity to one/zero and makes the keys..
2) W/S control the up/down for the second player.
3) Hold M for slow-mo
4) B to toggle block/round on the ball.
5) R to reset to ball... This is because the AI isn't perfect and will jam the ball into the ceiling on occasion... I will remove this if I ever decide to fix the AI.
6) UP/DOWN Controls the player
7) Space pauses
I think that's it for the commands... Here's a picture of the revised version:
Again, I'll upload a video when I feel like it.
Here is the game: http://dl.dropbox.com/u/33322667/pong%200.1.zip
It ended up with 910 lines of code (including whitespace), although a bit of it is stuff that should either be rewritten cleaner, or shortened because I did a few things twice which is why the physics can be goofy at times...
As for general info... It was coded in C++ with SDL, in visual studio 2010 (I'm sold on the IDE btw, this project has won me over... I can't quite say why I love it so much, but it just feels so nice). Probably most importantly is it's my first game... I was messing around with SDL before and made something that resembled a game, but I was just trying to figure out the basics of SDL then... It was really bad. Also, I didn't follow any tutorials for this either, I looked up a couple of SDL references and the occasional C++ one, but for the most part it was all me!
So, what do you think?
Oh, and if you play it... Do please tell what level you make it to! The most I've gotten is 5.