Documentation

Everything you need to build a game on the spooki-love template, synced from the repository's docs folder.

  1. 01

    Getting started

    What the spooki-love template is, how to scaffold a game from it, run it, and find your way around the repository.

  2. 02

    Scenes

    The scene lifecycle, how scenes are registered and switched, and how layers, the camera and the game object registry work.

  3. 03

    Game objects

    How to define a GameObject, what the engine draws for you, which event handlers it wires up, and how children, layers and unique names work.

  4. 04

    UI

    The flexbox-style UI primitives under engine/ui, their constructors, style keys, layout rules and the font and cursor contracts they rely on.

  5. 05

    Input

    Declare named actions with keyboard, mouse and gamepad bindings, read them from game code, and get remapping and on-screen prompts for free.

  6. 06

    Engine

    The Game config table, what Game.lua wires up, a module-by-module reference for everything under engine/, and the contracts a game must honour.

  7. 07

    Assets

    How fonts, images, sounds and cursors are preloaded through cacheManager, and how the marketing art in assets/generated is rendered by the game itself.

  8. 08

    Build and Release

    Keeping the code Lua 5.1 compatible for the web build, and running scripts/release.sh to package Mac, Windows, web and .love builds and push them to itch.io.

  9. 09

    Development

    The day-to-day loop of running the game, hot reloading, debugging with the MCP bridge and VSCode, and the conventions the code follows.

  10. 10

    Examples

    The runnable examples catalogue, how to run and test it, and how to add an example.

  11. 11

    Device

    Let the player pick a file from their device and use the device camera, through one engine API with a backend per platform.