forked from jamesjsewell/sifter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
37 lines (24 loc) · 754 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//import Scene1 from './states/Scene1.js';
// import Preload from 'states/Preload';
// import GameTitle from 'states/GameTitle';
// import Main from 'states/Main';
// import GameOver from 'states/GameOver';
import Scene1 from './states/Scene1'
class Game extends Phaser.Game {
constructor() {
super({renderer: Phaser.AUTO,
crisp: true,
roundPixels: true,
alignH: true,
alignV: true,
scaleH: 1,
scaleV: 1,
trimH: 0,
trimV: 0,
scaleMode: Phaser.ScaleManager.SHOW_ALL,
antialias: true });
this.state.add('Scene1', Scene1, false);
this.state.start('Scene1');
}
}
new Game();