1234567891011121314151617181920212223242526272829303132333435 |
- (function () {
- 'use strict';
- function Boot() {}
- Boot.prototype = {
-
- preload: function () {
- this.load.image('preloader', 'assets/preloader.gif');
- },
- create: function () {
- this.game.input.maxPointers = 1;
- if (this.game.device.desktop) {
- this.game.scale.pageAlignHorizontally = true;
- } else {
- this.game.scaleMode = Phaser.ScaleManager.SHOW_ALL;
- this.game.scale.minWidth = 480;
- this.game.scale.minHeight = 260;
- this.game.scale.maxWidth = 640;
- this.game.scale.maxHeight = 480;
- this.game.scale.forceLandscape = true;
- this.game.scale.pageAlignHorizontally = true;
- this.game.scale.setScreenSize(true);
- }
- this.game.state.start('preloader');
- }
- };
- window['trexrunner'] = window['trexrunner'] || {};
- window['trexrunner'].Boot = Boot;
- }());
|