A hackable template for creating small and fast browser games.

Goodluck is great for:

Getting Started

Goodluck is not a typical library. You don't install it via npm install. Instead, use it as a template: generate a new repository from it, remove features you don't need, and hack away. Consult the README to learn more.

Generate a new repo on GitHub


Goodluck is a template for creating small browser games which fit in a few kilobytes. It's designed for extreme hackability. The codebase is small and simple; it's mostly just ifs and fors. There are no abstractions, no overgrown class hierarchies, and no complex types; there's only data (components) and logic (systems). The code is easy to understand and modify.


All examples are WebGL2. The reported sizes are minified and gzipped.

Starter Templates