Skip to content

Instantly share code, notes, and snippets.

@fkaa
Created April 7, 2014 17:41
Show Gist options
  • Select an option

  • Save fkaa/10024901 to your computer and use it in GitHub Desktop.

Select an option

Save fkaa/10024901 to your computer and use it in GitHub Desktop.
Game.conf = function(cfg) {
cfg.window.width = 320;
cfg.window.height = 240;
cfg.window.title = "ouo!";
cfg.window.resizable = false;
}
Game.load = function() {
log("Game.load");
for (var asset in Data) {
Assets[asset] = Asset.load(Data[asset]);
}
}
Game.update = function() {
}
Game.draw = function(batch) {
batch.draw(Assets['default_texture'], 20, 20, 10, 10);
}
Game.quit = function() {
log("Game.quit");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment