jsGame
A JavaScript game library inspired by Pygame. Draw shapes, read the keyboard, and push events with a clean, pygame-style API. Built on plain HTML5 Canvas and shipped as a tiny ES module.
Documentation
Everything you need to start building with jsGame lives in the docs: installation steps, a getting-started guide, and a full API reference for every module, from drawing shapes to handling keyboard input and events.
Read the docs →Space Shooter
A live demo built with jsGame. Pilot a ship through an asteroid field, blast the rocks into smaller chunks, and chase the high score. Controls: W/S to thrust, A/D to turn, Space to fire, P to pause.
Play Space Shooter →