-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
65 lines (57 loc) · 2.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
<!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">
<link rel="stylesheet" href="CSS/style.css">
<title>Snake</title>
</head>
<body>
<div class='container'>
<div class='canvas'>
<div id='startImg'>
<img src='./Img/snake.png' alt='Snake'>
</div>
<canvas id='snake'></canvas>
</div>
<div class='menu'>
<div class='option'>
<h1>Game Options</h1>
</div>
<div id='highscore'></div>
<div class='level'>
<label><h2>Level</h2></label>
<select id='level'>
<option value="15">Novice</option>
<option value="10">Intermediate </option>
<option value="5">Hard</option>
</select>
</div>
<div id='speed'>
<label><h2>Speed</h2></label>
<input type='number' id='speednumb' name='speednumb' placeholder='Type speed between 15-20'>
</div>
<div class='board'>
<label><h2>Board Size</h2></label>
<select id='board'>
<option value="320">Small</option>
<option value="608 ">Normal </option>
<option value="704">Big</option>
</select>
</div>
<div class='apple'>
<label><h2>Number Of Apples</h2></label>
<input type='number' id='apple' name='apple' value="1">
</div>
<div class='snakelg'>
<label><h2>Length Of Snake</h2></label>
<input type='number' id='snakelg' name='snakelg' value="1">
</div>
<button type='button' id='setValue' class='setValue'>Play</button>
<button type='button' id='reset' class='reset'>Reset</button>
</div>
</div>
<script src="JS/snake.js"></script>
</body>
</html>