-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (32 loc) · 991 Bytes
/
Copy pathindex.html
File metadata and controls
32 lines (32 loc) · 991 Bytes
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
<html>
<head>
<title>Javascript Car</title>
<meta charset="UTF-8">
<script language="javascript" type="text/javascript" src="Point.js"></script>
<script language="javascript" type="text/javascript" src="Car.js"></script>
<script language="javascript" type="text/javascript" src="Hazard.js"></script>
<script language="javascript" type="text/javascript" src="sketch.js"></script>
<style type="text/css">
#canvas {
border: 2px solid #333;
}
h2 {
margin: 0;
}
p {
margin-top: 0;
}
</style>
</head>
<body>
<h2 id="title">Move the car with WASD!</h2>
<input id="hazards" type="number" placeholder="Hazards" value="1" />
<p>
Moving at <span id="speed">0</span> PPT at an angle of <span id="angle">0</span> degrees
</p>
<p>
There was <span id="collision">not</span> a collision
</p>
<canvas id="canvas" width="500px" height="500px"></canvas>
</body>
</html>