LÖVE 11.5 game template
An empty LÖVE (Love2D) game built on a small, self-contained engine. Scaffold a copy, then start adding scenes.
Out of the box you get a Menu scene with a Start button that switches to an empty Game scene, custom cursors, hot reload on save, a dev MCP bridge, and a release script that builds Mac, Windows, web and .love packages and pushes them to itch.io.

The wizard asks for the game title, author and itch.io username, then rewrites the window title, wordmarks, release variables, README and changelog. Pass --title, --author, --itch, --uti and --yes to skip the prompts.
Scaffold a new game from a checkout
./init.sh ../my-gameScaffold without a checkout
curl -fsSL https://raw.githubusercontent.com/spooki-dev/spooki-love/main/init.sh | bash -s my-gameOr clone first and rename in place
git clone https://github.com/spooki-dev/spooki-love.git my-game && cd my-game && ./init.shRun it (love is not on PATH on macOS)
/Applications/love.app/Contents/MacOS/love .Build Mac, Windows, web and .love packages without pushing
scripts/release.sh --no-pushNew here? Start with Getting started in the documentation.
49 small scenes that each show one part of the engine, running in the browser next to their source. The same files are the engine's regression suite, so every feature shown here is tested on every commit.
A base class for every entity: position, sprites and quads, shapes, text, animation, mouse and keyboard events, and children.
Scenes own ground, entities and ui layers, a gameObject registry, input dispatch and a camera with zoom and bounds-based culling.
Saved edits reload the game automatically, backtick forces it, and a dev-only MCP bridge on port 12345 lets tools drive the running game.
UIBox, UICanvas, UIStack, UIText, UIBar, BarFill and Button compose into a hierarchy via children, with fonts looked up by key.
A ping-pong canvas shader chain configured from main.lua. Scenes feed uniforms each frame through a single hook.
Icon, favicon, cover, social, wide and logo PNGs are rendered by the game itself from Lua scenes, so a colour or font change regenerates them.
Centralised managers for sounds and music, named custom cursors, and preloaded spritesheets, images, fonts and sounds.
Easing, hex colours, noise and perlin, theta pathfinding, intersection tests, table serialisation, hit and hurt boxes, and a light manager.
release.sh exports assets, builds the .love, packages Mac and Windows with the icon baked in, builds the love.js web version and pushes every channel to itch.io with butler.
main.lua builds the game from a config table and is the only place scenes are registered. The reusable engine lives under engine/ and never requires anything outside it.
| File | Purpose |
|---|---|
Game.lua | Top-level game built from a config table. Owns the managers and wires every love.* callback. |
Scene.lua | Base scene class managing layers, the gameObject registry, camera and input dispatch. |
GameObject.lua | Base class for all entities: rendering, animation, events and children. |
sceneManager.lua | Stores scenes by name and delegates update, draw and input to the current one. |
Camera.lua | Position, zoom and bounds-based culling. |
cacheManager.lua | Preloads and caches spritesheets, images, fonts and sounds before they are used. |
audioManager.lua | Loads and plays sound effects and music. |
cursorManager.lua | Named cursor registry populated from the cursors config. |
PostProcessing.lua | Shader chain populated from the shaders config, refilled with uniforms by the current scene each frame. |
AssetExporter.lua | Renders asset scenes to canvases at exact sizes and writes PNGs when run with --export-assets. |
renderer.lua | Shared drawing utilities used by GameObject. |
InputManager.lua | Input state tracking. |
State.lua | Generic key/value state container; state/GameState.lua is an instance. |
ui/ | UIBox, UICanvas, UIStack, UIText, UIBar, BarFill and Button. |
components/ | Optional mixins: HitHurtBox and LightManager. |
utils/ | Easing, hexcolor, intersection, noise, perlin, theta pathfinding and table serialisation. |
lib/ | Vendored third-party code: rxi/classic, hotReload and the Shädows light engine. |
dev/mcp_bridge.lua | The MCP bridge, loaded in dev only. |