1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
'use strict'; function Boot() { } Boot.prototype = { preload: function() { this.load.image('preloader', 'assets/preloader.gif'); }, create: function() { this.game.input.maxPointers = 1; this.game.state.start('preload'); } }; module.exports = Boot;