Skip to content

Instantly share code, notes, and snippets.

@netcell
Created March 30, 2015 05:40
Show Gist options
  • Save netcell/f9b6be20417cb2ea6e66 to your computer and use it in GitHub Desktop.
Save netcell/f9b6be20417cb2ea6e66 to your computer and use it in GitHub Desktop.
//...
, game = new Phaser.Game(properties.size.x, properties.size.y, Phaser.AUTO, 'game');
// Automatically register each state.
_.each(states, function(state, key) {
game.state.add(key, state(game));
});
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment