source code of http://avdg.github.com/minigame.html