Without further introduction, I (HEnK) present to you....
My OWN made pong version 2!!!
Just click below to select a one player game or a two player game.
Updated: oktober 21, 2005
Hello folks!
I've updated pong version 2! Check Pong 2.1. It has a few things fixed. Also the site got
a bit of a remake.
track of "interesting" changes. Secondly I've made a kind-of manual for pong. Check the game
and just scroll down.
a low place in the gamefield, and you got a powerUp that increased the size of your bar, it
would get stuck.
This was because there is a check if the bar hits the borders of the field. If it does,
the yMovement of the bar will be set on 0. When the bar got bigger, it exceeded the border
and yMovement would be set to 0.
Now, when a bar gets bigger, the y position of the bar will be set on a higher position if
the bar gets larger and with that exceed the border.
For this I've changed some things in the powerUp class,
added a method setYPos(int yPos) in the class Form and a method returnHeight() in the game
class. (it's a get method, but not name getHeight() because it would override the getHeight()
method of the Canvas and with that create problems :) )
let it react to the keyboard. I've now made a "START!" button. So you don't have to pause
and resume again. Of course these functions remain.
Updated: oktober 16, 2005
Well, I've done some work on my second pong. And of course, you may all take a look
to see what kind of work. That's why my pong now is open source (for all you freaks out
there with nothing better to do ;) ).
The code is rarred as exe file (so you don't need rar to extract). The rarred file contains
the whole JBuilder 2005 project. In SRC you can find the .java files if you only need those.
Project files | Description |
---|---|
Pong version 2.1 |
The bar bug has been removed and the game now has a start button. Check date: oktober 21, 2005 above for more info. For some unknown reason I could not upload this file. Hopefully soon to come! |
Pong version 2 |
This is my second pong. For opensource purposes I've added a LOT of comments in the code. Also there are new powerUps and double buffering in this version. Though I've done a lot to make the code better than that of the first version of pong, there are still some things that could be done better (think of movement with a timer, of a thread for each ball, which in fact WAS in the first version, I've changed that for some, I don't remember, reason). |
Pong |
My first version of Pong. After completing the first year at my new school I've decided to test my skills. This is the result of it. The version contains a few bugs like, a bit of the bar disappears after the ball hits it and sometimes the ball rolls over a powerUp but doesn't take it. The code was made for my eyes only, so there's no comment, and you should find out for yourself what methods do. |