Kernel
What nodes need from the engine (the engine makes it; a game never does).
Properties
Section titled “Properties”
readonlyatlas:Atlas
Where frames, baked shapes and texts live.
pixelScale
Section titled “pixelScale”
readonlypixelScale:number
Backing-store pixels per stage unit (texts and shapes are baked at it).
fontGen
Section titled “fontGen”
readonlyfontGen:number
Bumped when web fonts finish loading: texts bake again.
effects
Section titled “effects”
readonlyeffects:boolean
The tier’s effects (glows, soft shadows): shapes and texts bake without their shadow when false.
tweens
Section titled “tweens”
readonlytweens:Tweens
The engine’s tweens (a destroyed node’s stop).
Methods
Section titled “Methods”frame()
Section titled “frame()”frame(
name):Frame
A loaded or baked frame by name.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”shape()
Section titled “shape()”shape(
spec):BakedShape
A shape baked into the atlas.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”bitmapFont()
Section titled “bitmapFont()”bitmapFont(
name):BitmapFont
A bitmap font by name (loaded, or made with engine.bitmapFont).
Parameters
Section titled “Parameters”string