Skip to content

Pixel Engine 0.45.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 03:41
59abbd1

Pixel Engine 0.45.0 as the engine kit: pixel-engine.zip below holds the engine as one ES module, its guides, a starter game and check.mjs. Unzip it, then read README.md and GUIDE.md.

The newest release is always https://github.com/michaelcrosato/riftlight/releases/latest/download/pixel-engine.zip; this one stays at https://github.com/michaelcrosato/riftlight/releases/download/engine-v0.45.0/pixel-engine.zip.

What changed in 0.45.0

  • The kit runs in Node: Engine.headless(game, { assets }) from pixel-engine.js alone, with
    no node_modules. In Node, Rapier's wasm comes from the data URL the kit inlines, and a reader
    (assets, setAssetReader) no longer sees the files the kit embeds (__PIXEL_ASSETS__: the
    built-in models load as they do in a page).
  • node check.mjs --headless game.js: plays a game module in Node, no browser. It makes the game
    with the module's createGame() export, plays the --keys frames, replays the recording in a
    fresh game and writes report.json (state(), errors, the fingerprint). Exit 1 on an error or a
    replay that ends elsewhere, 2 for a page or a module without createGame().
  • The starter game.js exports createGame() and starts the engine only where there is a
    document, so it imports in Node. GUIDE.md section 8, Play it in Node, shows a test of your own.