-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
89 lines (80 loc) · 4.25 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Shape Wars</title>
<link rel="icon" type="image/png" href="https://shapewars.xyz/public/favicon.png">
</head>
<body class="vw-100 vh-100 color-white bg-black">
<header class="d-flex flex-column justify-content-between align-items-center p-15 mb-30">
<h1 class="mb-6">Shape Wars</h1>
<p>A <a href="https://plantperson.info" target="_blank" rel="noopener noreferrer"> Gabriel Talavera </a> production.</p>
</header>
<main class="d-flex flex-column justify-content-center">
<div class="d-flex align-items-center justify-content-between canvas-width">
<div class="d-flex mx-0 mb-6">
<p class="bold mr-10">Lives Left: <span class="color-green" id="lives"></span></p>
<p class="bold mr-10">Bombs Left: <span class="color-green" id="bombs"></span></p>
</div>
<div class="d-flex mx-0">
<p class="bold mr-8">Points: <span class="color-orange" id="points"></span></p>
<p class="color-white bold mr-10">High Score: <span class="color-orange" id="highscore"></span></p>
</div>
</div>
<div class="d-flex">
<div class="mb-6 position-relative">
<canvas id="canvas" width="720" height="540"></canvas>
<div id="canvas-overlay" class="overlay d-none">
<div class="text-center position-relative top-50" id="message"></div>
</div>
<button class="position-absolute btn-orange" type="button" id="startGame">Start Game</button>
</div>
</div>
<div class="d-flex align-items-center justify-content-end canvas-width">
<label class="ml-8 mr-4" for="volume">Volume: </label>
<input class="mr-8" id="volume" value=".3" type="range" min="0" max="1" step=".1"/>
<input class="mx-8" type="checkbox" id="mute" />
<label for="mute">Mute</label>
</div>
<div class="canvas-width">
<h2 class="mt-25 mb-10">How To Play</h2>
<hr>
<p class="mt-10 mb-6">You take command of a small white triangle spaceship that shoots projectiles. Survive by taking out as many enemy shapes as you can!</p>
<p class="mb-10">Pressing the SPACEBAR will use one of your 2 bombs and wipe the board of enemies. You are given 2 lives, if an enemy collides into you then you will lose a life.</p>
<ul>
<li class="d-flex align-items-center mb-6"><img class="mr-6 ml-0" src="https://shapewars.xyz/public/Wanderer.png" width="35px" height="35px" alt="Wander Enemy">Wander Enemies wander aimlessly</li>
<li class="d-flex align-items-center mb-6"><img class="mr-6 ml-0" src="https://shapewars.xyz/public/Follower.png" width="35px" height="35px" alt="Follower Enemy">Follower Enemies will slowly follow you</li>
<li class="d-flex align-items-center mb-6"><img class="mr-6 ml-0" src="https://shapewars.xyz/public/Avoider.png" width="35px" height="35px" alt="Avoider Enemy">Avoider Enemies will follow you and try to avoid your incoming bullets</li>
</ul>
<h2 class="mt-25 mb-10">Controls</h2>
<hr>
<ul class="d-flex mt-10">
<li class="mr-15">W: move up</li>
<li class="mr-15">A: move left</li>
<li class="mr-15">S: move down</li>
<li class="mr-25">D: move right</li>
<li class="mr-15">← rotate left </li>
<li class="mr-15">→ rotate right </li>
</ul>
<ul class="d-flex mt-10">
<li class="mr-15">P: pause game </li>
<li class="mr-15">R: restart game</li>
<li class="mr-15">(spacebar): bomb </li>
</ul>
<h2 class="mt-25 mb-10">Credits</h2>
<hr>
<ul>
<li class="mt-10 mb-6">
Source code:
<a href="https://github.com/gabrieltal/shape_wars" target="_blank" rel="noopener noreferrer"> Github</a>
</li>
<li class="mb-6">
Music:
<a href="https://freemusicarchive.org/music/Rolemusic/The_Pirate_And_The_Dancer/04_rolemusic_-_the_pirate_and_the_dancer" target="_blank" rel="noopener noreferrer"> The Pirate And The Dancer by Rolemusic</a>
</li>
</ul>
</div>
</main>
<script src="./bundle.js"></script>
</body>
</html>