Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Phaser CE code examples
see also Phaser CE API Code Reference and other online examples of Phaser CE (Phaser 2) game coding
game stage (canvas)
game world
Your game world and your game canvas can be the same size — or they can be different sizes. By default, they are set to the same size. The size of the game canvas represents what is displayed to the player at any given time. However, you can make your game world larger than your game canvas (and then make the game canvas scroll automatically as the player's character moves through the game world).
start screen, pause/resume game, game over screen
images - adding, setting properties
game camera
Sprites - adding, setting properties
sprite health
sprite animations
Arcade physics properties
Arcade physics methods for collisions and overlap
weapon and bullets
other Arcade physics methods, such as: find closest object, get distance between objects, get angle between objects, accelerate sprite towards location, etc.
how to add enemy AI behaviors
add audio to game (sound effects, music)
sprite groups
add text to game
input using keys
Particle Effects
tween animations
tilesprite background that scrolls
timers
random numbers
input using mouse/pointer