Where to go now

To provide a better experience to players, you could place some dynamic text fields showing the current level and the score, as well as the high score. Then you can add some lines to onMouseCk function, you can make the player restart the game if he clicks the mouse when the game is over. You only have to reset the score, the level, and the variable that states the game is over.

Get Flash Game Development by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.