Hey, nice article.
Having a game loop is basic practice and it can be applied to multiple games programming, not only the ones in HTML5. For example, I've built a game in DirectX following the same basic principles. I would like to tell you more about it, because I think you may find fun, and I see Zarkonnen already has an example of it in his article (more exactly, of the Classic mode of it).
First, it's called Ultimate Tic-Tac-Toe, and it can be played immediately after it gets the Greenlight from Steam. Let me just tell you what sets it apart from the Classic game (which you can also play). The more interesting part of it is the Ultimate game mode and it's played like this:
Each square of the 3x3 game board contains another, smaller, 3x3 game board.
Where the player makes his move in a square of any small board, the opponent is sent in the respective square of the big board.
If the player is sent to an already won or draw board, then he can go wherever he likes.
3 squares in-a-row in a small board wins the small board and the big square.
3 squares in-a-row in the big board wins the game.
A draw board will not count for either players.
There is a level system that is active in Ultimate type Single Player and Multiplayer, but not Hot Seat games.
There are 50 levels, with the following rules for leveling up or down:
- Levels 0 to 20: game win: +1, game lose: -1, game draw: 0;
- Levels 21 to 35: game win: +1, game lose: -2, game draw: 0;
- Levels 36 to 50: game win: +1, game lose: -2, game draw: -1.
The game features Single Player (with 3 different difficulty settings), Hot Seat and Multiplayer modes.
There are achievements and other goodies, too. You can download a
demo here.
If you're interested, please head over to the
Steam Greenlight page and vote for it.
Thank you!