Here is a little one-level game I did in HTML5 course on edX.

screenshot

https://paiv.github.io/html5.2x.game/

source code

Everything is hand-crafted, no libs used, in a single (hopefully readable) JavaScript file.

The game engine implements

  • gamepad/keyboard input
  • canvas blending
  • collision detection
  • A-star path finding
  • sprite sheets
  • fog of war

HTML5 features:

  • gamepad
  • audio context
  • canvas
  • xhr XMLHttpRequest

Minimized with