Skip to content

Instantly share code, notes, and snippets.

@rezoner
Created April 8, 2015 15:55
Show Gist options
  • Save rezoner/33811509be54b86067c9 to your computer and use it in GitHub Desktop.
Save rezoner/33811509be54b86067c9 to your computer and use it in GitHub Desktop.
var app = playground({
create: function() {
app.loadData(...);
},
ready: function() {
app.setState(PLAYGROUND.LoadingScreen);
app.loadImages(...);
app.loader.once("ready", app.stepTwo);
},
stepTwo: function() {
/* MORE */
app.loadImages(...);
app.loader.once("ready", app.stepThree);
},
stepThree: function() {
app.loadImages(...);
app.loader.once("ready", app.stepFour);
},
stepFour: function() {
app.setState(Game);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment