An HTML5 Tetris Game
- play the game
- based on source and the corresponding blog article
I tried very hard to structure it according to the SAM pattern. The end result seems very modular.
- the original code used invalidation flags to check if it needed to refresh parts of the screen -- not sure if this is still needed? I've removed it for the time being; still we could add it back, I guess, by extending the "present" function of the model?
- menu
- animation and fx
- levels
- high scores
- touch support
- music and sound fx
- mobile version
MIT license.