-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (48 loc) · 2.18 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
<!DOCTYPE html>
<html>
<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>POWERSNAKE</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="game-info">
<h1 style="color: rgb(0, 140, 255);">POWERSNAKE</h1>
<p id="game-score" style="color: rgb(0, 225, 255);;"></p>
</div>
<div class="game-box" style="margin: 0 auto; position: relative;">
<canvas id="canvas" width="625" height="625" style="border: 1px solid white;"></canvas>
<div style="position: absolute; top:0; left:6vh; text-align: left;">
<div>
<h1 id="top-side1" class="side-text">DON'T TOUCH...</h1>
<h4 class="side-text" style="color: rgb(0, 225, 255); padding-left: 17vh;">MOVE</h4>
<img class="img-keys" src="imgs/wasd.png" style="width: 40vh; height: 20vh;">
<h4 id= "shoot-text" class="side-text" style="color: rgb(0, 225, 255); padding-left: 16.5vh;">SHOOT</h4>
<img id="shoot-button" class="img-keys" src="imgs/spacebar.png" style="width: 40%; height: 40%;">
</div>
</div>
<div style="position: absolute; top:0; right:6vh; text-align: right;">
<div>
<h1 id="top-side2" class="side-text">...THE 'APPLE'</h1>
<h4 class="side-text" style="color: rgb(0, 225, 255); padding-right: 17vh;">MOVE</h4>
<img class="img-keys" src="imgs/arrows.png" style="width: 40vh; height: 20vh;">
<h3 class="side-text" style="color: rgb(0, 140, 255); padding-right: 13vh;">GAME MODE</h3>
<div style="padding-right: 8vh;">
<input class="button" type="button" value="Classic" id="Classic"/><br>
<input class="button" type="button" value="Predator" id="Predator" /><br>
<input class="button" type="button" value="Prey" id="Prey" /><br>
<h5 class="side-text" style="color: rgb(0, 140, 255); padding-right: 4vh;">PREY has wrapping.</h5>
</div>
</div>
</div>
</div>
</div>
<div class="game-info" style="line-height: 5px;">
<h4 style="color: rgb(0, 225, 255);">Press 'P' to Pause or Play</h4>
<h5 style="color: rgb(0, 140, 255);">Sachin Patel (Sach-P)</h5>
</div>
<script src="gamelogic.js"></script>
</body>
</html>