-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (38 loc) · 1.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Critter Quest</title>
<style>
html,
body,
#game-container {
margin: 0;
padding: 0;
}
#game-container {
min-width: 100vw;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
#game-container > canvas {
border-radius: 5px;
}
</style>
</head>
<body>
<div id="game-container"></div>
<!---<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser.min.js"></script> -->
<script src="./offline-phaser3.16.2.min.js"></script>
<script src="./js/index.js" type="module"></script>
<script nomodule>
alert(
"This browser doesn't support JS modules, unable to run game. Try the latest version of Chrome, Firefox, Edge or Safari!"
);
</script>
</body>
</html>