-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (70 loc) · 1.94 KB
/
index.html
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!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/menu_scene.js"></script>
<script src="js/bowpuzzle_scene.js"></script>
<script src="js/boss_scene.js"></script>
<script src="js/badend_scene.js"></script>
<script src="js/tutorial_scene.js"></script>
<script src="js/start_one_scene.js"></script>
<script src="js/start_two_scene.js"></script>
<script src="js/start_three_scene.js"></script>
<script src="js/start_four_scene.js"></script>
<script src="js/start_five_scene.js"></script>
<script src="js/controller_scene.js"></script>
<script src="js/lobby_scene.js"></script>
<script src="js/goodend_scene.js"></script>
<script src="js/sign_scene.js"></script>
<style>
canvas {
padding: 0;
margin: auto;
display: block;
/*width: 800px;*/
}
body {
background-color: black;
}
</style>
</head>
<body>
<iframe src="snd/silence.mp3" allow="autoplay" id="audio" style="display:none"></iframe>
<script>
const config = {
type: Phaser.AUTO,
width: 1280,
height: 720,
backgroundColor: '#7e86c3',
parent: 'ransom',
physics: {
default: 'arcade',
arcade: {
gravity: 0,
debug: false,
}
},
scene: [
Preloader,
MainMenuScene,
TutorialScene,
BowPuzzleScene,
BossScene,
BadEndScene,
StartOneScene,
StartTwoScene,
StartThreeScene,
StartFourScene,
StartFiveScene,
ControllerScene,
LobbyScene,
GoodEndScene,
SignScene
]
};
let game = new Phaser.Game(config);
</script>
</body>
</html>