-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
30 lines (26 loc) · 738 Bytes
/
Copy pathmain.js
File metadata and controls
30 lines (26 loc) · 738 Bytes
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
import { sceneGame } from './sceneGame.js';
import { sceneDialog } from './sceneDialog.js';
import { sceneMenu } from './sceneMenu.js';
import { sceneTitle } from './sceneTitle.js';
import { sceneStory } from './sceneStory.js';
const config = {
type: Phaser.AUTO,
width: 640,
height: 480,
input: {
gamepad: true
},
backgroundColor: 'black',
parent: 'phaser',
physics: {
default: 'arcade',
arcade: {
gravity: { 0: 300 },
debug: false
}
},
scene: (location.search.substring(1) == "") ? [sceneTitle, sceneGame,
sceneDialog, sceneMenu, sceneStory] : [sceneGame,
sceneDialog, sceneMenu, sceneStory]
};
new Phaser.Game(config);