-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (45 loc) · 1.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Candy Clouds</title>
<!-- Import Custom Font -->
<link rel="preload" as="font" href="assets/fonts/candy-shop.ttf" type="font/ttf" crossorigin="anonymous"/>
<link rel="preload" as="font" href="assets/fonts/chicken-pie.ttf" type="font/ttf" crossorigin="anonymous"/>
<link rel="preload" as="font" href="assets/fonts/comic-story.ttf" type="font/ttf" crossorigin="anonymous" />
<style>
body {
background-color: lavender;
}
/* import candy shop font */
@font-face {
font-family: candy-shop;
src: url('./assets/fonts/candy-shop.ttf');
}
/* import chicken pie font */
@font-face {
font-family: chicken-pie;
src: url('./assets/fonts/chicken-pie.ttf');
}
/* import comic story font */
@font-face {
font-family: comic-story;
src: url('./assets/fonts/comic-story.ttf');
}
</style>
</head>
<body>
<!-- Import JS files -->
<script src="./lib/phaser.js"></script>
<script src="./src/prefabs/Rocket.js"></script>
<script src="./src/prefabs/Spaceship.js"></script>
<script src="./src/prefabs/Egg.js"></script>
<script src="./src/scenes/Menu.js"></script>
<script src="./src/scenes/GameControls.js"></script>
<script src="./src/scenes/Rules.js"></script>
<script src="./src/scenes/Play.js"></script>
<script src="./src/main.js"></script>
</body>
</html>