First version I salvage from the depths of my old comp sci folder. Has
blocks in the middle that isn't working very well, which you will soon learn
when you try to play it. Just leaving a copy here for kicks.
Click Here
Second version without the blocks and a little bit nicer coding and recoded
the randgen to make place and direction when the ball starts off.
Click here.
On both versions, need to click once in the window for the ball to start moving. Bar moves with the mouse location, just make sure not to drag the mouse off the window or it will no long follow it. Going to work on a data file so players can customize bar size, initial ball speed, etc. All that good stuff. Hitting 'p' will pause the game (yeah, I know, cheating) and will unpause it. Hit 'q' to make the game end early. Then just click in the window and it will go away, unfortunately windows is picky like that because it shows whether you won or lost on the dos window and your final score. But such is life.
3/8/2004 - This is just a little taste of what i have been playing with,
added in the option to change the size of the window and the input for the
bar (mouse or keyboard). The keyboard works with 'u' as up and 'd' as down.
Also can play multiple times without having to reopen the program and will save
any changes you made to the window size and input so long as you don't quit.
4/2/3004 - Yeah, didn't realize i uploaded the wrong file, this one has the
change to keyboard input to use windows keypad instead of the mac(in other
words, keyboard works now) So now the keyboard works with the arrow up and
arrow down keys as well as 'u' and 'd'.
Click here.
Back
Updated
05/16/2004