This repository was archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
102 lines (82 loc) · 2.7 KB
/
Copy pathindex.html
File metadata and controls
102 lines (82 loc) · 2.7 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<base href="/">
<!-- Primary Meta Tags -->
<title>RRR</title>
<meta name="author" content="FFR">
<meta name="description" content="RRR">
<meta name="theme-color" content="#FF0000">
<link rel="copyright" href="copyright">
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<!-- Indexing -->
<meta name='robots' content='noindex,follow' />
<link type="text/plain" rel="author" href="humans.txt">
<!-- Styling -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/style.css" rel="stylesheet">
<link rel="manifest" href="manifest.json">
</head>
<body class="root flex">
<div class="benchmark">
<label>avg</label>
<p id="avg_frame_time">0.00ms</p>
<label>min</label>
<p id="min_frame_time">0.00ms</p>
<label>max</label>
<p id="max_frame_time">0.00ms</p>
<label>skipped</label>
<p id="skipped_frames">0</p>
</div>
<div id="canvas">
<canvas class="game" id="rrr" width="512" height="720"></canvas>
<div class="progress">
<div class="progress-inner">
<p id="progress">Press Space to Start!</p>
</div>
</div>
<div class="judgement">
<div class="amazing">
<label>Amazing: </label>
<p id="amazing">0</p>
</div>
<div class="perfect">
<label>Perfect: </label>
<p id="perfect">0</p>
</div>
<div class="good">
<label>Good: </label>
<p id="good">0</p>
</div>
<div class="average">
<label>Average: </label>
<p id="average">0</p>
</div>
<div class="boo">
<label>Boo: </label>
<p id="boo">0</p>
</div>
<div class="miss">
<label>Miss: </label>
<p id="miss">0</p>
</div>
</div>
</div>
<script type="module">
import init, { play, Engine, SettingsMerge } from "./bin/rrr.js";
async function run() {
await init();
var engine = new Engine();
console.log("Engine: ", engine.toJSON().toJSON());
var settings = new SettingsMerge();
settings.scroll_speed = 1000;
engine.modify_settings(settings);
console.log("Post Edit Engine: ", engine.toJSON().toJSON());
// Launch the game
play(document.getElementById("rrr"), 512, 720);
}
run();
</script>
</body>
</html>