Hangman Game
The classic hangman game is a good case study for a simple JavaScript game. The logic of the game itself is very simple, but its implementation offers a good range of challenges and techniques.
The Complete Game
Before we begin with the step by step analysis and construction, you can find the complete implementation here. This page takes a wee while to load because of the huge word list included...
If you want to check out some other implementations for comparison you can find a Flash version here. Flash is an interesting technology to compare are is it is the main alternative to JavaScript/HTML for building web applications.
Background Info
You can find a great introduction to JavaScript programming here.
You can find a collection of HTML5/JavaScript game engines here.
back to the examples