There's no dearth of resources for learning to code these days. Add to your collection Game Maven, which walks you through writing the code for three casual games (in the spirit of Asteroids, Angry Birds and Mario Bros).
Like similar tutorials, Game Maven shows the code on one side of the screen and the objects on the other side, so you can see right away how your code affects the game. Developer Greg Linden, who also offers the Crunchzilla tutorials Code Monster and Code Maven, says Game Maven is for adults and older teens who have some programming experience and an interest in making games.
The tutorials are versatile too. You could just click through the lessons to see how the code works or spend hours customising the games for yourself. At the end, you can copy and paste the code into an HTML file and then load the games into any browser for playing.
Game Maven [Crunchzilla]