-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
129 lines (128 loc) · 4.09 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="Survive the Nights" />
<meta
property="og:image"
content="https://github.com/eric2523/survive-the-nights/blob/main/survive-the-nights-splash.png?raw=true"
/>
<script
src="https://use.fontawesome.com/releases/v5.15.1/js/all.js"
data-auto-a11y="true"
></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-4THZ5KVW1Q"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-4THZ5KVW1Q");
</script>
<link
href="https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap"
rel="stylesheet"
/>
<link rel="icon" href="favicon-96x96.png" />
<link rel="stylesheet" href="./index.css" />
<title>Survive the Nights</title>
</head>
<body>
<header>
<h1 class="title">Survive the Nights</h1>
</header>
<div class="canvas-div">
<div class="next-level">
<div id="next-level-btn" class="hide">
<span>Next Level</span>
</div>
<div id="play-again-btn" class="hide">
<span>Play Again</span>
</div>
</div>
<div class="loading-screen">
<div id="start-game">
<span class="play-btn">Play</span>
</div>
<div class="demo-images">
<div class="img-1"></div>
<div class="img-2"></div>
</div>
</div>
<div class="canvas-container">
<div id="toolbar">
<div class="btn-container">
<div id="home">
<!-- <i class="fas fa-home"></i> -->
<span class="toolbar-btns">Home</span>
</div>
<div id="pause">
<!-- <i class="far fa-pause-circle"></i> -->
<span class="toolbar-btns">Pause</span>
</div>
<div id="play">
<!-- <i class="far fa-play-circle"></i> -->
<span class="toolbar-btns">Resume</span>
</div>
<div id="restart">
<span class="toolbar-btns">restart</span>
</div>
<div id="mute-sound">
<span class="toolbar-btns">Unmute</span>
</div>
</div>
</div>
<canvas id="myCanvas" height="480px" width="640px"></canvas>
<div class="instructions">
<h1>How to Play</h1>
<span class="instructions-info">Use WASD to move</span>
<div class="main-controls">
<span class="wasd">W</span>
<span class="wasd">A</span>
<span class="wasd">S</span>
<span class="wasd">D</span>
</div>
<span class="instructions-info">Use Arrow Keys to shoot</span>
<div class="main-controls">
<span class="wasd"> ↑ </span>
<span class="wasd"> ↓ </span>
<span class="wasd"> ← </span>
<span class="wasd"> → </span>
</div>
<h1>Rules</h1>
<span class="instructions-info"> 1) DON'T TOUCH THE ENEMIES </span>
<span class="instructions-info"> 2) SHOOT THE ENEMIES </span>
</div>
</div>
<div class="bio-icons">
<div class="github">
<a
target="_blank"
href="https://github.com/eric2523/survive-the-nights"
>
<i class="fab fa-github"></i>
</a>
</div>
<div class="linked-in">
<a
target="_blank"
href="https://github.com/eric2523/survive-the-nights"
>
<i class="fab fa-linkedin"></i>
</a>
</div>
</div>
</div>
<script type="module" src="./main.js"></script>
</body>
</html>