I am a complete newbie to programming, so please forgive any bad coding methods. I have two things I want to get right with my game, and I can’t figure out how to do them.
First, how to play my game: Push one of the arrow keys once to move the middle square in the direction of the same color bar. You score 10 points each time you do this correctly. If you push the square to the wrong color bar, the game ends.
What I can’t figure out:
Why is my scoring not working?
How do I get the PlayerBox object to move the same speed in all four directions? It seems to move slower going left and right than it does going up and down.
Also, if you have any suggestions on how to code the game more efficiently, please let me know. Thank you for your help. simple-game.zip (7.45 KB)