-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (98 loc) · 3.05 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
90
91
92
93
94
95
96
97
98
99
100
101
102
<!doctype html>
<html>
<head>
<link href='s.ico' rel="shortcut icon">
<title> snayk </title>
<style>
.rules {
padding-left: 10px;
display:inline;
}
.details{
font-size: small;
}
.filler {
width: 30px;
}
.filler2{
width:38px;
}
body.noscroll {
position:fixed;
overflow-x:scroll;
overflow-y: scroll;
/*width: 100%;*/
}
</style>
<script src='loadhighscores.js'></script>
<script src = 'game.js'> </script>
</head>
<body class='noscroll'>
<canvas id='screen' width='600' height = '480' ></canvas>
<p class='rules'><br><strong>SNAYK</strong><br>
<em style='padding-left:15px'>-an almost familiar game</em></p>
<span>
<table class='details'>
<tr>
<!-- <td class='filler'></td> -->
<td>
<button onclick='userName = document.getElementById("user").elements[0].value;
localStorage.setItem("-1",userName);
document.getElementById("user").elements[0].value = "";
document.getElementById("playername").textContent = userName'>Set Player
</button>
</td>
<td>
<form id='user' >
<input type='text' name='fname' style='width:60%;'>
</form>
</td>
<td class='filler'></td>
<td></td>
<td></td>
<td class'filler2'></td>
<!-- <td><strong>Player:</strong></td> -->
<td><em id=playername></em></td>
</tr>
<tr>
<td><strong>↑ (UP)</strong></td>
<td>Move away from centre</td>
<td class='filler'></td>
<td><strong>T</strong></td>
<td>View origin and no-turn-zone</td>
<td class='filler2'></td>
<td><strong>HIGH SCORES</strong></td>
</tr>
<tr>
<td><strong>↓ (DOWN)<strong></td>
<td>Move towards centre </td>
<td class='filler'></td>
<td><strong> (SPACE)</td>
<td>Double Dash</td>
<td class='filler2'></td>
<td id='highscore1'><em></em></td>
</tr>
<tr>
<td><strong>← (LEFT)</strong></td>
<td>Move anticlockwise </td>
<td class='filler'></td>
<td></td>
<td></td>
<td class'filler2'></td>
<td id='highscore2'><em></em></td>
</tr>
<tr>
<td><strong>→ (RIGHT)<strong></td>
<td>Move clockwise</td>
<td class='filler'></td>
<td></td>
<td></td>
<td class'filler2'></td>
<td id='highscore3'><em></em></td>
</tr>
</table>
</span>
<script>displayHighScores();</script>
<script async defer src="https://www.recurse-scout.com/loader.js?t=66220b6c8b7a1872622dc235cf43b585"></script>
</body>
</html>