45 lines
1.3 KiB
HTML
45 lines
1.3 KiB
HTML
<!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>Avoid | Game</title>
|
|
|
|
<meta name="theme-color" content="#A5402D" />
|
|
<link
|
|
href="https://fonts.googleapis.com/css?family=Raleway&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<link rel="stylesheet" href="css/main.css" />
|
|
</head>
|
|
|
|
<body>
|
|
<div id="menuBox">
|
|
<div class="box">
|
|
<div id="startText">
|
|
<h1>Avoid</h1>
|
|
<p>
|
|
A relentless swarm is closing in on you. Guide your light across
|
|
the screen with your cursor (or finger), stay out of reach, and
|
|
outsmart your pursuers by luring them into crashing into one
|
|
another. How long can you survive?
|
|
</p>
|
|
</div>
|
|
<div id="endText">
|
|
<h1>You lost.</h1>
|
|
<p id="endScore"></p>
|
|
</div>
|
|
<button id="startButton">Let's start</button>
|
|
</div>
|
|
</div>
|
|
|
|
<canvas id="canvas"></canvas>
|
|
|
|
<script src="js/CanvasHandler.js"></script>
|
|
<script src="js/InputHandler.js"></script>
|
|
<script src="js/vec2.js"></script>
|
|
<script src="js/main.js"></script>
|
|
</body>
|
|
</html>
|