widthnumberThe game window in pixels: how much it draws, not how big it looks. Kept small by default
because this is a retro engine: a 320 by 224 picture blown up beats a huge canvas drawing
pixel art at its own size.
backgroundTColorWhat the frame is cleared to.
rendererTRendererTypeWhich backend draws: 'AUTO', or one named on purpose.
msaa1 | 4Anti-aliasing: 1 is off, which is the aliased look of the era.
smoothbooleanDefault filtering: false is crisp pixel art, true blends. A sprite can still choose.
pixelSnapopcionalTPixelSnapWhich pixels what is drawn lands on: 'screen', 'game' or 'off'. Absent, it follows
smooth: 'screen' for crisp pixel art, 'off' for a smooth game. See
TGameOptions.pixelSnap.
pixelAspectopcionalnumberHow wide a game pixel is painted against how tall: absent is 1, square; 8 / 7 for the NES
and the SNES. See TGameOptions.pixelAspect.
pixelRationumber | 'device'How many real pixels each game pixel is drawn with: 1 (the default, and the one for pixel
art), a number, or 'device' to follow the screen. Sharper edges for 3D and HD games, at the
square of the cost. See TGameOptions.pixelRatio.
scalingTCanvasScalingHow the canvas is fitted into the page.
keepTCanvasKeepWhat is kept when it is fitted.
fullscreenScalingTCanvasScalingHow the canvas is fitted once the player asks for full screen. 'integer' by default. See
TGameOptions.fullscreenScaling.
alignopcionalTCanvasAlignWhere the game sits in its page, over what the page's CSS asks. Left out, the page decides.
See TGameOptions.align.
stepTGameStepHow the game's time moves forward: 'display', one update per picture the screen shows, or
that many fixed steps a second (60, 50 for PAL). See TGameOptions.step.
pauseOnBlurbooleanWhether the game pauses itself when the page loses focus.
seedopcionalnumberThe seed of the game's random numbers, or absent for a different run every time.
actionsTActionMapThe input map: the named actions and what each one listens to. In the same file as
everything else about the game.
actionsPersist'none' | 'localStorage' | 'indexedDb'Whether the player's own controls survive a reload, and where they are kept. 'none' by
default: writing to somebody's browser storage unasked is not something a game should start
doing because the engine gained a feature.
physicsLayersstring[]Names for the physics layers, in order: the first is layer 0. Empty when the game says its
layers by number.
postTPostChainThe full-screen effect chain: the effects applied to the finished frame, in order (a
dither, a palette reduction, a CRT). "This game looks like a Mega Drive" is a fact about the
project, not about whichever room is open, so it lives here and reaches the game as
TGameOptions.post.
mainScenestringWhich scene the game starts on, by name. Empty means nobody has decided yet: better than
quietly starting whichever sorts first, which is impossible to debug later.
bannerbooleanWhether the startup line is printed in the console. true by default.
splashboolean | 'always'Whether the game opens with "Made with NacatamalOn": true in the published game,
'always' while developing too. false by default. See TGameOptions.splash.