-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (39 loc) · 845 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Snake</title>
<style>
.collision {
background-color: red;
}
.snake {
background-color: black;
}
.food {
background-color: green;
}
#main > table {
box-sizing: border-box;
border-collapse: collapse;
border: 1px solid #ddd;
}
#main > table td {
margin: 0;
padding: 0;
width: 1em;
height: 1em;
border: none;
}
</style>
</head>
<body>
<h1>Snake</h1>
<h2>Score: <span id="score"></span></h2>
<h2>Rate: <span id="rate"></span> nodes per second</h2>
<button id="new-game">New Game</button>
</br>
</br>
<div id="main"></div>
<script data-main="scripts/main.js" src="scripts/lib/require.js"></script>
</body>
</html>