The best way to learn programming might be to play with some simple game code.
This is a dodgeball game.
Here is a link to the game:
Here is a link to the code:
Note that a speed increase and a score was added.