-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (38 loc) · 1.58 KB
/
Copy pathindex.html
File metadata and controls
54 lines (38 loc) · 1.58 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>2D ZiZ Driving</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<!-- External CSS -->
<link href="css/styles.css" rel="stylesheet">
<link href="https://api.mapbox.com/mapbox-gl-js/v3.0.0/mapbox-gl.css" rel="stylesheet">
<!-- Favicon -->
<link rel="icon" href="assets/favicon.ico" type="image/x-icon">
<!-- Load Joystick Library (NippleJS) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/nipplejs/0.9.0/nipplejs.min.js"></script>
<!-- Load Mapbox GL JS -->
<script src="https://api.mapbox.com/mapbox-gl-js/v3.0.0/mapbox-gl.js"></script>
</head>
<body>
<!-- Map container -->
<div id="map"></div>
<!-- Joystick container (Right Side) -->
<div id="joystick-container" ></div>
<!-- Shoot Button (Above Brake Button) -->
<button id="shoot-button">X</button>
<!-- Brake Button (Left Side) -->
<button id="brake-button">B</button>
<!-- Overlay showing the version -->
<div id="version-overlay">Loading version...</div>
<!-- Speed display container -->
<div id="speed-display">Speed: 0</div>
<!-- Include configuration file for Mapbox access token or other settings -->
<script src="js/config.js"></script>
<!-- Load the main JavaScript file with a timestamp to prevent caching -->
<script>
document.write('<script src="js/main.js?v=' + Date.now() + '"><\/script>');
</script>
</script>
</body>
</html>