forked from BitBrigade/Tim-E-Scape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (44 loc) · 1.13 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
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser-arcade-physics.min.js"></script>
<script src="scenes/loadingScene.js"></script>
<script src="scenes/level1.js"></script>
<script src="scenes/level2.js"></script>
<script src="scenes/level3.js"></script>
<script src="scenes/level4.js"></script>
<script src="scenes/level5.js"></script>
<script src="scenes/endingScene.js"></script>
<style>
canvas {
display: block;
margin: auto;
}
</style>
</head>
<body>
<script>
// Game config
var config = {
type: Phaser.AUTO, // sets type automatically to WEBGL; falls back to CANVAS if WEBGL is not supported
width: 700,
height: 600,
// Game physics
physics: {
default: 'arcade', // physics system
arcade: {},
},
scene: [
loadingScene,
Level1,
Level2,
Level3,
Level4,
Level5,
endingScene,
],
}
var game = new Phaser.Game(config)
</script>
</body>
</html>