Main Objects (Accessed via local reference only)
Game States
Game (via game)
StateManager (via state)
new StateManager(game, pendingState[null])
Canvas
new Canvas()
State
new State()
Device (via
[Link])
DOM
<internal> new Device()
Cache (via cache)
new Cache(game)
Loader (via load)
new Loader(game)
RequestAnimationFra new RequestAnimationFrame(game,
me (via [Link])
forceSetTimeOut[false])
LoaderParser
new LoaderParser()
Utils
new Game(width[800], height[600],
renderer[[Link]], parent[],
state[null], transparent[false],
antialias[true], physicsConfig[null])
World (via world)
new World(game)
Camera (via camera)
new Camera(game, id, x, y, width, height)
Stage (via stage)
new Stage(game)
new ScaleManager(game, width, height)
new FlexGrid(manager, width, height)
InputHandler (via
[Link])
Events (via
[Link])
Create (via create)
new GameObjectCreator(game)
new Group(game, parent[game world],
name['group], addToStage[false],
enableBody[false], physicsBodyType[0]
new InputHandler(sprite)
new Events(sprite)
new Create(game)
TweenManager (via tweens)
new TweenManager(game)
Tween
new Tween(target, game,
manager)
new TweenData(parent)
Easing
new ArraySet(list[new array])
ArrayUtils
new ArrayUtils()
BitmapData
new BitmapData(game, key, width[256],
height[256])
new RenderTexture(game, key, width[100],
height[100], key[''],
scaleMode[[Link]],
resolution [1])
Color
new Color()
Debug (via
[Link])
LinkedList
new Debug(game)
Utils
new Utils()
RenderTexture
new Easing()
Back, Bounce, Circular, Cubic,
Elastic, Exponential, Linear,
Quadratic, Quartic, Quintic,
Sinusoidal
Required
Optional
[default]
Repeatablen
v2.4.4 Cheat Sheet
Updated: 12/30/2015
Created By: @cjadelstad
new LinkedList()
Time
new Tilemap(game, key, tileWidth[32], tileHeight[32],
width[10], height[10])
new TilemapLayer(game, tilemap, index, width, height)
Time (via time)
new Time(game)
Timer (via [Link])
TimerEvent (via [Link])
Tile
new Tileset(name, firstgid, width[32], height[32],
margin[0], spacing[0], properties[{}])
new Tile(layer, index, x, y, width, height)
TilemapParser
new TilemapParser()
new Timer(game,
autoDestroy[true])
new TimerEvent(timer, delay,
tick, repeatCount, loop,
callback, callbackContext,
arguments)
Tilemap
TilemapLayer
Tileset
Sound
Tweens
TweenData
ArraySet
new Graphics(game, x[0], y[0])
Tilemaps
new GameObjectFactory(game)
new DOM()
Graphics
new FlexLayer(manager, position, bounds,
scale)
Game Objects
GameObjectFactory
(via add)
GameObjectCreator
(via make)
Group
Loader
Graphics
Game Scaling
ScaleManager (via
scale)
FlexGrid (via
[Link])
FlexLayer
System
Network
Net (via net)
new Net(game)
SoundManager (via
sound)
Sound
new SoundManager(game)
new Sound(game, key, volume[1], loop[false])
Math (via math)
new Math()
AudioSprite
new AudioSprite(game, key)
QuadTree
new QuadTree(x, y, width,
height, maxObjects[10],
maxLevels[4], level[0])
new
RandomDataGenerator(seeds)
Math
Animation
AnimationManager (via
[Link])
Animation
new AnimationManager(sprite)
RandomDataGenerator (via rnd)
Plugins
AnimationParser
new Animation(game, parent, name,
frameData, frames, frameRate[60],
loop[false])
new AnimationParser()
FrameData
new FrameData()
Signals
Frame
new Frame(index, x, y, width, height,
name)
Signal
new Signal()
SignalBinding
new SignalBinding(signal, listener, isOnce,
listenerContext[null], priority, args[none]n)
Gamepads
Gamepad (via [Link])
new Gamepad(game)
SinglePad (via
[Link]<1,4>)
DeviceButton
new SinglePad(game, padParent)
new DeviceButton(parent, buttonCode)
PluginManagers (via plugins)
new PluginManager(game)
Plugins
new Plugin(game, parent)
Input
Physics
Input (via input)
new Input(game)
Physics
Pointer (via
[Link])
DeviceButton (via
[Link])
Keyboard (via
[Link])
Key
new Pointer(game, id, pointerMode[CURSOR |
CONTACT])
new DeviceButton(parent, buttonCode)
Arcade Physics
Mouse (via
[Link])
MSPointer (via
[Link])
Touch ([Link])
new Arcade(game)
Body (via [Link]):
new Body(sprite)
Ninja Physics
new Key(game, keycode)
Ninja (via [Link])
new Ninja(game)
new Mouse(game)
Body (via [Link])
new Body(system, sprite, type[1], id[1], radius[16], x[0], y[0], width[0], height[0])
AABB
new AABB(body, x, y, width, height)
Circle
new Circle(body, x, y, radius)
Tile
new Tile(body, x, y, width, height, type[1])
new MSPointer(new MSPointer(game))
new Touch(game)
P2 Physics
Sprite
new Sprite(game, x, y, key, frame)
Image
new Image(game, x[0], y[0], key, frame)
TileSprite
new TileSprite(game, x, y, width, height, key, frame)
Button
new Button(game, x[0], y[0], key, callback,
callbackContext, overFrame, outFrame, downFrame,
upFrame)
new SpriteBatch(game, parent, name[group],
addToStage[false])
new Rope(game, x, y, key, frame, points)
Rope
Arcade (via [Link])
new Keyboard(game)
Display
SpriteBatch
P2 (via physics.p2)
new P2(game, config)
Body (via [Link])
new Body(game, sprite, x[0], y[0], mass[1])
BodyDebug
new BodyDebug(game, body, settings)
Material
new Material(name)
ContactMaterial
new ContactMaterial(materialA, materialB, options)
CollisionGroup
new CollisionGroup(bitmask)
FixtureList
new FixtureList(list)
Constraints
Distance Constraint new DistanceConstraint(world, bodyA, bodyB, distance, localAnchorA, localAnchorB,
maxForce[Number.MAX_VALUE])
GearConstraint new GearConstraint(world, bodyA, bodyB, angle[0], ratio[1])
Text
Text
BitmapText
RetroFont
new Physics(game, physicsConfig[null])
new Text(game, x, y, text, style)
*See compatibility table for available fonts
*See API for Style properties available
new BitmapText(game, x, y, font, text[''], size[32],
align['left'])
new RetroFont(game, key, characterWidth,
characterHeight, chars,
charsPerRow, xSpacing[0], ySpacing[0], xOffset[0],
yOffset[0])
Particles
LockConstraint new LockConstraint(world, bodyA, bodyB, offset, angle[0], maxForce)
PrismaticConstraint new PrismaticConstraint(world, bodyA, bodyB, lockRotation[true], anchorA, anchorB, axis,
maxForce)
RevoluteConstraint new RevoluteConstraint(world, bodyA, pivotA, bodyB, pivotB, maxForce[0], worldPivot[null])
PointProxy
new PointProxy(world, destination)
InversePointProxy
new InversePointProxy(world, destination)
Spring
new Spring(world, bodyA, bodyB, restLength[1], stiffness[100], damping[1], worldA, worldB,
localA, localB)
new RotationalSpring(world, bodyA, bodyB, restAngle, stiffness[100], damping[1])
RotationalSpring
Particles (via particles)
new Particles(game)
Emitter
new Emitter(game, x[0], y[0], maxParticles[50])
Particle
new Particle(game, x, y, key, frame)
Required
Optional
[default]
Repeatablen
v2.4.4 Cheat Sheet
Updated: 12/30/2015
Created By: @cjadelstad
Geometry
Circle
new Circle(x[0], y[0], diameter[0])
Ellipse
new Ellipse(x[0], y[0], width[0], height[0])
Line
new Line(x1[0], y1[0], x2[0], y2[0])
Point
new Point(x[0], y[0])
Polygon
new Polygon(points)
Rectangle
new Rectangle(x, y, width, height)
RoundedRectangle
new RoundedRectangle(x[0], y[0], width[0], height[0], radius[0])