Skip to content

Pixel Engine 0.40.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 22:06
3f59c1e

Pixel Engine 0.40.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.40.0/pixel-engine.zip.

What changed in 0.40.0

  • No engine hotkeys in a shipped game. P, R, `, [ ], M are developer tools: on with the debug
    panel (the dev server, ?debug=1), off otherwise. debugKeys: true / false turns them on /
    off always; an object (DebugKeyChanges: { resolution: 'F2' }) still moves or drops single
    keys, and no longer turns them on. resolveDebugKeys() with nothing now gives none (true: the
    defaults), and rebindDebugKeys(keys, changes) moves only the keys that are on, so a game that
    moves R off its own key at runtime never turns the hotkeys back on. The debug panel lists only
    the hotkeys that are on, under their keys, and the touch bar's debug button is ⓘ (⚙ is the
    settings).
  • Player settings (engine.settings, PlayerSettings): look, pixel art or smooth 3D, pixel
    size, quality, frame rate and debug info, as plain data saved per game (EngineOptions.settings.key,
    default the first game's name) and applied over the game's own choices. A field left out is the
    game's; set, reset, replace, values, onChange. A review flag in the URL wins over a
    saved value at start (which stays saved), and a chosen look wins over each new level's own. A
    replay saves nothing and puts the player's settings back when it ends.
  • The settings panel, with the sound volumes, opens from the ⚙ button (settings.button: a
    corner, default top-right; on a mouse it shows while the pointer moves; false for none) or
    engine.settings.open(). It pauses the game while open, keys pressed in it never reach the
    game, and it stays shut while a replay plays. Its Look is off while pixel art is: smooth 3D
    draws no look. Also engine.useQuality(option) (auto: the device's level, lowered once by a
    measurement), engine.showDebug(on), engine.debugShown and audio.resetVolumes().