Game Palette: Game flow demo

This browser does not support HTML5 canvas; it is required to use the Game Palette library

Press any key to start. A/D or ←/→ move the basket, P pauses, and M turns the music off and on.

Star Catcher is a complete little game, built the way the skeleton suggests: one logic mode for each part of the game. After loading, it makes its objects once, then goes round the title screen, the game, and the game over screen, setting each up in a mode of its own. "Press any key" uses GAMEPALETTE.anyKey, pausing is a logic mode too (so the "Paused" message can still be drawn), and the score and messages are drawn in the engine's foregroundFunction, over a sky drawn by its backgroundFunction. The best score is kept in the browser's localStorage.

See Skeleton and Press any key in the manual.

All demos