Skip to content

Kernel

What nodes need from the engine (the engine makes it; a game never does).

readonly atlas: Atlas

Where frames, baked shapes and texts live.


readonly pixelScale: number

Backing-store pixels per stage unit (texts and shapes are baked at it).


readonly fontGen: number

Bumped when web fonts finish loading: texts bake again.


readonly effects: boolean

The tier’s effects (glows, soft shadows): shapes and texts bake without their shadow when false.


readonly tweens: Tweens

The engine’s tweens (a destroyed node’s stop).

frame(name): Frame

A loaded or baked frame by name.

string

Frame


shape(spec): BakedShape

A shape baked into the atlas.

ShapeSpec

BakedShape


bitmapFont(name): BitmapFont

A bitmap font by name (loaded, or made with engine.bitmapFont).

string

BitmapFont