-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
87 lines (81 loc) · 3.17 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Game Time</title>
<!--bringing in the 2P font via GoogleFonts-->
<link href='https://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css">
<link rel="stylesheet" type="./styles.css" href="./styles.css">
</head>
<body>
<div class="container">
<h3 id="neon-tubing">~SNKE~</h3>
<!-- Modal Structure -->
<div id="modal1">
<div class="modal-content white-text">
<div class="row">
<img src="images/cartoon-snake.png" alt="" class="col s2"/>
<div class="col s 8">
<h4>Welcome to Snke!!!</h4>
</div>
<p>
INSTRUCTIONS: Use the arrow keys to move the green snake around the
screen and eat the red food to score points.
The <button class="black-text">Directions</button> button turns on Vim Mode
which diasbles the arrow keys and enables Vim directional keys (hjkl).
The <button class="black-text">Portals</button> button turns on Portal
Mode which adds portals to the board so you can transcend both time
and space. Guess what the <button class="black-text">Speed</button>
does? Increases the speed! Also, the walls are currently set to off
so you can pass through them. Click the
<button class="black-text">Walls</button> to turn them on if you're
the real deal. WATCH OUT - those modes might just go ahead and turn
themselves on if you score enough points!
</p>
</div>
</div>
<div class="modal-footer center">
<a href="#!" class="white-text modal-start modal-close waves-effect waves-green btn green">Start Game</a>
</div>
<br>
</div>
<div class="row">
<div class="game">
<div class="col s10 board">
<canvas id="canvas" width="600" height="400"></canvas>
</div>
<div class="col s2 green-text">
<h5>Score</h5>
<p id="current-score" class="center">
0
</p>
<h5>Level</h5>
<p id="current-level" class="center">
1
</p>
</div>
</div>
</div>
</div>
<div class="row center game-buttons">
<button id='vim'>Directions: STD</button>
<button id='portal'>Portals: Off</button><br><br>
<button id='speed'>Speed: Slow</button>
<button id='toggle-walls'>Walls: Off</button><br><br>
</div>
<div class="game-over white-text center">
<h1>GAME OVER</h1>
<h5>High Scores:</h5>
<ul class="high-scores"></ul>
<br>
<a href="http://adamki.github.io/snake/" id='new-game' class='btn green white-text'>New Game</a>
</div>
<!-- <script src="jquery-1.12.0.min.js"></script> -->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="main.bundle.js"></script>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/js/materialize.min.js"></script>
</body>
</html>