-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNeed4Speed.html
31 lines (30 loc) · 996 Bytes
/
Need4Speed.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
<!DOCTYPE html>
<html>
<head>
<title>Need4Speed</title>
<link rel="stylesheet" href="Need4Speed.css"/>
<meta name="description" content="Need4Speed"/>
<meta name="author" content="Viet Le"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script src="Need4Speed.js"></script>
</head>
<body onload="startGame()">
<div class="console">
<div class="row row1">
<button class="btn1" onmouseup="moveStop()" onmousedown="moveUp()">UP</button>
</div>
<div class="row row2">
<button class="btn3" onmouseup="moveStop()" onmousedown="moveLeft()">LEFT</button>
</div>
<div class="row row3">
<button class="btn2" onmouseup="moveStop()" onmousedown="moveRight()">RIGHT</button>
</div>
<div class="row row4">
<button class="btn4" onmouseup="moveStop()" onmousedown="moveDown()">DOWN</button>
</div>
</div>
<div class="row" id="reset">
<button class="reset" onclick="reset()">RESET</button>
</div>
</body>
</html>