Here's the pseudocode for what i did in Ti-Basic:
The first problem I see is that I don't know how to display the 1 pixel lightcycle. Can a sprite be defined as one pixel? Ideally there would be a pixel-on and pixel-text command that I could use.
Code: Select all
Lbl A pxl-on(x1,y1) pxl-on(x2,y2) prgmAISUB getkey determine direction based on input inc / dec x and y variables according to direction check if the pixel about to be turned on is already on, if so goto B goto A Lbl B determine winner/loser