-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (36 loc) · 812 Bytes
/
index.html
File metadata and controls
40 lines (36 loc) · 812 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
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
<script src="js/phaser.min.js"></script>
<script src="js/phaser_addon.js"></script>
<script src="js/preloader.js"></script>
<script src="js/menuscene.js"></script>
<script src="js/collectobj.js"></script>
<script src="js/gamescene.js"></script>
<script src="js/tutorial.js"></script>
</head>
<body>
<script>
var config = {
type: Phaser.AUTO,
width: 800,
height: 600,
backgroundColor: '#006060',
parent: 'phaser-example',
physics: {
default: 'arcade',
arcade: {
gravity: 0
//,debug: true
}
},
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH
},
scene: [ Preloader, MainMenu, TutorScene, GameScene ]
};
var game = new Phaser.Game(config);
</script>
</body>
</html>