-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
89 lines (83 loc) · 3.1 KB
/
index.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>🍉3-Ka game</title>
<link rel="stylesheet" href="./style.css">
<link rel="preload" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6/css/all.min.css">
</noscript>
</head>
<body oncontextmenu="return false;">
<div id="outer">
<div id="bodyContainer">
<div id="container"></div>
<div id="subPanel">
<div id="upNextDiv">
<h3>-NEXT-</h3>
<p id="upNext"> Comming up next!</p>
</div>
<div id="infoDiv">
<h3>-SCORE-</h3>
<p id="scoreBoard">0</p>
<h3>-INSTRUCTION-</h3>
<p class="instruction">Q, E, W, X : rotate view <br>
Z, C : zoom int / out <br>
🍒➡🍓➡🍇➡🍊➡🍅➡<br>
🍎➡🍐➡🍑➡🍍➡🍈➡🍉</p>
</div>
</div>
</div>
<div id="info">
Made by rahon6000 <br>
<a href="https://github.com/rahon6000"><i class="fab fa-fw fa-github"></i>Github</a> | <a href="https://rahon6000.github.io/">blog</a> <br>
Powered by
<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a>
</div>
</div>
<!-- Using CDN -->
<!-- <script type="importmap">
{
"imports": {
"three": "https://unpkg.com/[email protected]/build/three.module.js"
}
}
</script> -->
<div id="debugContainer">
<h1>--Debugger--</h1>
<table>
<tr>
<th>mousePos</th><th>containerSize</th><th>cameraXY-</th><th>sph no.</th>
<th>no.1 Pos</th><th>no.1 Vel</th><th>FPS</th>
</tr>
<tr>
<td class="debTab"></td><td class="debTab"></td><td class="debTab"></td><td class="debTab"></td>
<td class="debTab"></td><td class="debTab"></td><td class="debTab"></td>
</tr>
</table>
<form>
FloorE<input class="debTab" type="range" max="1" min="0" step="0.05" value="0.5" name="floorE"><br>
WallE<input class="debTab" type="range" max="1" min="0" step="0.05" value="0.5" name="wallE"><br>
SpheE<input class="debTab" type="range" max="1" min="0" step="0.05" value="0.5" name="spheE"><br>
SpheF<input class="debTab" type="range" max="1" min="0" step="0.05" value="0.7" name="spheF"><br>
Still<input class="debTab" type="range" max="8" min="0" step="0.05" value="4.0" name="still"><br>
WallR<input class="debTab" type="range" max="1" min="0" step="0.05" value="0.1" name="wallRep"><br>
SpheR<input class="debTab" type="range" max="1" min="0" step="0.05" value="0.5" name="spheRep"><br>
</form>
<table class="debTab" name="spheres">
</table>
</div>
<!-- Using node.js -->
<script type="importmap">
{
"imports": {
"three": "./node_modules/three/build/three.module.js"
}
}
</script>
<script type="module" src="./build/script.js">
</script>
</body>
</html>