-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (58 loc) · 1.98 KB
/
index.html
File metadata and controls
68 lines (58 loc) · 1.98 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ferris Wheel</title>
<style>
canvas {
background-image: linear-gradient(to bottom, #04275d, #0c3367, #153f72, #1f4b7b, #295785, #4f6191, #6d6c9b, #8977a4, #b884a4, #d897a0, #ebb19e, #f0cfa6);
display: block;
margin: auto;
}
</style>
</head>
<body>
<div style="display: flex; justify-content: center; align-items: center; flex-direction: column;">
<canvas id="ferrisCanvas" width="600" height="600"></canvas>
<div class="control-panel">
<button id="startButton">Start</button>
<div id="timer">Time: 30</div>
<div id="score">Score: 0</div>
<span id="liveFPS">Live FPS: 0</span>
</div>
<!-- FPS Slider -->
<div style="margin-top: 10px; width: 600px; display: flex; align-items: center;">
<label for="fpsSlider" style="margin-right: 10px;">FPS: </label>
<input type="range" id="fpsSlider" min="10" max="120" value="60" style="flex: 1;">
<span id="fpsValue">60</span>
</div>
<div style="margin-top: 20px;">
Use arrow keys (←/→) to spin the ferris wheel. Collect as many passengers as you can!
</div>
</div>
<script src="ferrisWheel.js"></script>
<script src="cloud.js"></script>
<script src="grass.js"></script>
<script src="worker.js"></script>
<script src="passenger.js"></script>
<script src="main.js"></script>
</body>
<style>
.control-panel {
display: flex;
justify-content: space-between;
width: 600px;
margin-top: 5px;
}
@media (max-width: 620px) {
.control-panel {
flex-direction: column;
align-items: center;
}
.control-panel>* {
margin-bottom: 10px;
}
}
</style>
</html>