Phaser.State = function (){ } ; Phaser.State.prototype = { link: function (game){ this.game = game; this.cache = game.cache; this.load = game.load; this.math = game.math; this.time = game.time; this.tweens = game.tweens; } , preload: function (){ } , create: function (){ } , update: function (){ } , render: function (){ } , paused: function (){ } , destroy: function (){ } } ;