mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
New: You'll now find a complete Basic project Template in the resources/Project Templates folder. Will add more complex ones soon.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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');
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user