mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 12:03:36 +00:00
32 lines
635 B
JavaScript
32 lines
635 B
JavaScript
|
BasicGame.Game = function (game) {
|
||
|
|
||
|
// Honestly, just about anything could go here.
|
||
|
|
||
|
};
|
||
|
|
||
|
BasicGame.Game.prototype = {
|
||
|
|
||
|
create: function () {
|
||
|
|
||
|
// Honestly, just about anything could go here. It's YOUR game after all. Eat your heart out!
|
||
|
|
||
|
},
|
||
|
|
||
|
update: function () {
|
||
|
|
||
|
// Honestly, just about anything could go here. It's YOUR game after all. Eat your heart out!
|
||
|
|
||
|
},
|
||
|
|
||
|
quitGame: function (pointer) {
|
||
|
|
||
|
// Here you should destroy anything you no longer need.
|
||
|
// Stop music, delete sprites, purge caches, free resources, all that good stuff.
|
||
|
|
||
|
// Then let's go back to the main menu.
|
||
|
this.game.state.start('MainMenu');
|
||
|
|
||
|
}
|
||
|
|
||
|
};
|