Created
April 8, 2015 15:49
-
-
Save rezoner/4cd6118fa4df556d9f9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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