Arrow keys to move but wait until you stop moving to change direction otherwise a glitch occurs where the speed variable gets stuck and constantly shifts between 3 and 4 or -3 and -4. Also has randomly generating levels only three levels but I may add more in the future. get to the green square to go to the next level. Level 2 may repeat itself because I don't know how to program the random level generator to not pick 2 if the current level is 2. (UPDATE) Fixed the glitch... sort of. if the glitch happens hold the down arrow until speed equals zero and is not shifting
Everything is by me