-
Notifications
You must be signed in to change notification settings - Fork 0
/
index1.html
92 lines (70 loc) · 2.45 KB
/
index1.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
<!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">
<!-- CSS -->
<link rel="stylesheet" href="css/snake.css">
<title>Iron Snake!</title>
</head>
<body>
<h1>Iron Snake</h1>
<div style="text-align: center;">
<img src="images/doublesnake.png" alt="2snake">
</div>
<br>
<!-- BUTTONS / SCORE -->
<div style="text-align: center;">
<button id='btn'>START</button>
<button id="btn-help">HELP</button>
<button class="score"> SCORE: <span id="scoreCount">0</span> </button>
</div>
<!-- CANVAS -->
<canvas id="canvas" width="800" height="600"></canvas>
<!-- MODAL - HELP -->
<div id="modal-help" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<h2>INSTRUCTIONS</h2>
</div>
<div class="modal-body">
<h3>Use The Directional Arrows To Navigate The Board</h3>
<h2>← ↑ → ↓</h2>
<h3>Use The SpaceBar To Pause The Game</h3>
<h3>Do Not Touch The Edge Of The Game Board Or You Will Die...</h3>
<h3>Do Not Run Into Yourself Or You Will Die...</h3>
<h2>REGULAR FOOD = 1 Point</h2>
<h2>PIZZA = 10 Points</h2>
<img src="images/pizza-slice.png" alt="">
</div>
<div class="modal-footer">
<h3>Enjoy The Game!</h3>
</div>
</div>
</div>
<!-- MODAL - DIE -->
<div id="modal-die" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="close2">×</span>
<h2>GAME OVER</h2>
</div>
<div class="modal-body">
<h3>You Lost! Try Again!</h3>
</div>
<div class="modal-footer">
<h3>:)</h3>
</div>
</div>
</div>
<!-- Music and FX for game start -->
<!-- <audio controls autoplay preload="none" style="width:400px; visibility:hidden" id="details" source src="sounds/OOT_Navi_Hey1.wav" type="audio/mp3" /> -->
<!-- <audio controls autoplay preload="none" style="width:400px; visibility:hidden" id="details" source src="sounds/zelda.m4a" type="audio/mp3" loop="true"/> -->
<!-- Music and FX for game start -->
<script src="js/snake.js"></script>
<script src="js/modal.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</body>
</html>