Writing and moving a paddle to hit a "ball"
Posted on 2002-07-18
A few years ago when computer games first came out I had two handsets connected to a TV set which had buttons on it which enabled two users to play a game (Tennis I think)
This game is very primitive by todays standards but I quite liked it. So my question is this:
How can I program a screen (with boundaries) with a paddle that moves up and down by pressing two keys (say m and k)and a ball (I think called a diode) which bounces off the paddle and the boundaries (there should be a section of the boundarie that is open and if the diode "hits" this will count as a goal (score).
If I get help with this part of the program I should then (hopefully) be able to do a "mirror" program for the opposite side of the game (oponent).
Any help appreciated