Skip to content

Instantly share code, notes, and snippets.

@rezoner
Created April 8, 2015 15:49
Show Gist options
  • Save rezoner/4cd6118fa4df556d9f9f to your computer and use it in GitHub Desktop.
Save rezoner/4cd6118fa4df556d9f9f to your computer and use it in GitHub Desktop.
playground({
create: function() {
app.loadData(...);
},
ready: function() {
app.loadImage(...);
/* manually enter loader */
app.setState(PLAYGROUND.LoadingScreen);
app.loader.once("ready", function() {
app.setState(Game);
/* or load more images and bind another listener*/
app.loadImages(...);
app.loader.once("ready", function() {
});
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment