Phaser244 cheatsheet .pdf

File information


Original filename: Phaser244_cheatsheet.pdf
Title: PowerPoint Presentation
Author: Chad Elstad

This PDF 1.5 document has been generated by Microsoft® PowerPoint® 2013, and has been sent on pdf-archive.com on 06/02/2016 at 16:00, from IP address 78.43.x.x. The current document download page has been viewed 921 times.
File size: 401 KB (2 pages).
Privacy: public file


Download original PDF file


Phaser244_cheatsheet.pdf (PDF, 401 KB)


Share on social networks



Link to this file download page



Document preview


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
game.device)
DOM

<internal> new Device()

Cache (via cache)

new Cache(game)

Loader (via load)

new Loader(game)

RequestAnimationFra new RequestAnimationFrame(game,
me (via game.raf)
forceSetTimeOut[false])

LoaderParser

new LoaderParser()

Utils

new Game(width[800], height[600],
renderer[Phaser.AUTO], 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
object.input)
Events (via
objects.events)
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[Phaser.scaleModes.DEFAULT],
resolution [1])

Color

new Color()

Debug (via
game.debug)
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 time.create)
TimerEvent (via time.add)

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
scale.grid)
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
sprite.animations)
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 input.gamepad)

new Gamepad(game)

SinglePad (via
input.gamepad.pad<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
input.pointer)
DeviceButton (via
pointer.leftButton)
Keyboard (via
input.keyboard)
Key

new Pointer(game, id, pointerMode[CURSOR |
CONTACT])
new DeviceButton(parent, buttonCode)

Arcade Physics

Mouse (via
input.mouse)
MSPointer (via
input.mspointer)
Touch (input.touch)

new Arcade(game)

Body (via sprite.body):

new Body(sprite)

Ninja Physics

new Key(game, keycode)

Ninja (via physics.ninja)

new Ninja(game)

new Mouse(game)

Body (via sprite.body)

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 physics.arcade)

new Keyboard(game)

Display

SpriteBatch

P2 (via physics.p2)

new P2(game, config)

Body (via sprite.body)

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])


Document preview Phaser244_cheatsheet.pdf - page 1/2

Document preview Phaser244_cheatsheet.pdf - page 2/2

Related documents


phaser244 cheatsheet
moment theory in a nutshell
b w ci700 series brochure
super basic indesign guide
cern rebuilding a quantum tower of babel
brotplot 2 article

Link to this page


Permanent link

Use the permanent link to the download page to share your document on Facebook, Twitter, LinkedIn, or directly with a contact by e-Mail, Messenger, Whatsapp, Line..

Short link

Use the short link to share your document on Twitter or by text message (SMS)

HTML Code

Copy the following HTML code to share your document on a Website or Blog

QR Code

QR Code link to PDF file Phaser244_cheatsheet.pdf