
The Phaser 2 Sandbox allows you to code games in your browser without having to download or install anything.
The powerful editor features Phaser code assists, JavaScript snippets and lots of the features you've come to love in editors like Sublime and Brackets.
Once finished you can save, export or share your game.

QuickStart Templates
Start developing at lightning-speed with these code templates:
-
Blankety BlankUse this Template
As naked as they come! There is no additional code in this template beyond the function blocks.
-
Single SpriteUse this Template
Loads an image and creates a single sprite with it.
-
Bare Bones PlatformerUse this Template
Creates a sprite and platform using Arcade Physics. The sprite can run and jump with the keyboard.
Click here for the full template list.
Phaser Code Completion
1) Press CTRL + SPACE
(or Command + SPACE
on OS X) to bring-up the code snippets panel:

Note: The list of snippets you see changes depending which tab you're on.
2) Use the cursor keys and press Enter
to select a snippet from the list.
For example here we've inserted the code to create a Sprite:

Power Tip: When the list is open you can start typing a snippet name and it will filter the list selection for you.
3) Once the snippet appears in the editor press the Tab
key to move through the parameters and replace the defaults.
