Skip to content

Instantly share code, notes, and snippets.

@videlais
Last active January 3, 2016 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save videlais/ec1fcee6c0b040a52577 to your computer and use it in GitHub Desktop.
Save videlais/ec1fcee6c0b040a52577 to your computer and use it in GitHub Desktop.
Game description of BasicPlatformer
var game = new Phaser.Game(
720, 384, // The width and height of the game in pixels
Phaser.AUTO, // The type of graphic rendering to use
// (AUTO tells Phaser to detect if WebGL is supported.
// If not, it will default to Canvas.)
'phaser-game', // The parent element of the game
{preload: preload, // The preloading function
create: create, // The creation function
update: update}); // The update (game-loop) function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment