I am supposed to create this primitive game for this Saturday as part of my final grade but i just can't figure out how to move a pixel using the keyboard in graphics mode.
I am doing my own version of the classic pongand i created these two bars that are supposed to be manouverable using the keyboard in order to kick back the "ball". However i just can't find out how i am supposed to do this.
I know about the "code" for every button and i know i somehow have to use that code (for example 119 for w to move up and 115 for s to move down) but i can't figure it out how, what command i need to use.
Please help,
if not a "direct" help at least give me some hints. Please be quick though as i have to get it done by Saturday morning.



LinkBack URL
About LinkBacks
and i created these two bars that are supposed to be manouverable using the keyboard in order to kick back the "ball". However i just can't find out how i am supposed to do this.


