-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
148 lines (147 loc) · 7.78 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<title>Desire Path (three.js)</title>
<link type="text/css" rel="stylesheet" href="./index.css" />
<link id="favicon" rel="icon" href="#" type="image/x-icon" />
<script>
(function() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) != 'micromessenger') return;
var p = navigator.platform;
if (p.indexOf("Win") == 0 || p.indexOf("Mac") == 0) {
if (navigator.language.indexOf("zh-CN") == 0)
alert("不支持在微信pc内置浏览器中运行!请在其他浏览器中打开。");
else
alert("Does not support running in WeChat PC built-in browser! Please open in other browsers.");
}
})();
</script>
<!-- <script type="importmap">
{
"imports": {
"three": "./node_modules/three/build/three.module.js",
"three/": "./node_modules/three/",
"three-csg": "./models/three-csg.min.js"
}
}
</script> -->
<script defer type="text/javascript" src="./node_modules/three/build/three.min.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/utils/BufferGeometryUtils.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/shaders/DigitalGlitch.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/shaders/LuminosityShader.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/shaders/SobelOperatorShader.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/shaders/PixelShader.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/shaders/CopyShader.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/shaders/RGBShiftShader.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/shaders/DotScreenShader.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/shaders/FilmShader.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/postprocessing/EffectComposer.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/postprocessing/RenderPass.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/postprocessing/ShaderPass.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/postprocessing/FilmPass.js"></script>
<script defer type="text/javascript" src="./node_modules/three/examples/js/postprocessing/GlitchPass.js"></script>
<!-- --
<script defer src="https://unpkg.com/vconsole/dist/vconsole.min.js" onload="var vConsole = new window.VConsole();"></script>
<!-- -->
<!-- --
<script defer src="./node_modules/eruda/eruda.js" onload="eruda.init();"></script>
<!-- -->
<!-- --
<script defer type="text/javascript" src="./node_modules/three/examples/js/controls/OrbitControls.js"></script>
<!-- -->
<script defer type="text/javascript" src="./node_modules/three-nebula/build/three-nebula.js"></script>
<script defer type="text/javascript" src="./lottie.min.js"></script>
<script defer type="module" src="./index.js"></script>
</head>
<body>
<div id="page-loading">Loading...</div>
<div id="top-btns">
<a id="github-icon-btn" class="topside-btn-margin" href="https://github.com/jerrychan7/desire_path"></a>
<div id="full-screen-icon-btn" class="topside-btn-margin"></div>
<div id="effect-btn" class="topside-btn-margin" style="display: none;"><span id="effect-content"></span></div>
</div>
<div id="page-playing" style="display: none;">
<canvas id="game-canvas">Your browser does not support WebGL.</canvas>
<div class="game-cover"></div>
<div id="nowScoreBox" class="topside-btn-margin"><span id="nowScore"></span></div>
<div id="operation-discription">
<div class="touch-device">
<div class="left">◯<br/>TAP HERE TO<br/>MOVE LEFT</div>
<div class="right">◯<br/>TAP HERE TO<br/>MOVE RIGHT</div>
</div>
<div class="pc-device">
<div class="left">◯<br/>CLICK A TO<br/>MOVE LEFT</div>
<div class="right">◯<br/>CLICK D TO<br/>MOVE RIGHT</div>
</div>
</div>
<div class="pause-icon-btn" style="display: none;"></div>
</div>
<div id="page-pause" style="display: none;">
<div class="topside-btn-margin"></div>
<div class="setting-icon-btn topside-btn-margin"></div>
<div class="info"></div>
<div class="btns">
<div class="replay-icon-btn"></div>
<div class="play-icon-btn"></div>
</div>
</div>
<div id="page-welcome" style="display: none;">
<div class="setting-icon-btn topside-btn-margin"></div>
<div class="menu">
<div class="title">
<h1>D E S I R E</h1>
<h2>P ◈ A ◈ T ◈ H</h2>
</div>
<div class="btns">
<div class="levels-mode-btn">LEVELS<br/>MODE</div>
<div class="play-icon-btn"></div>
</div>
</div>
</div>
<div id="page-challenges" style="display: none;">
<div class="back-icon-btn topside-btn-margin"></div>
<div class="levels"></div>
<div class="title">
<h1>D E S I R E</h1>
<h2>P ◈ A ◈ T ◈ H</h2>
<h3>CHALLENGES</h3>
</div>
</div>
<div id="page-gameover" style="display: none;">
<div class="back-icon-btn topside-btn-margin"></div>
<div class="info"></div>
<div class="player-color-select">
<div class="player-color-options"></div>
<div id="player-color-option-template" style="display: none;">
<canvas></canvas>
<div class="lock-icon"></div>
</div>
<div class="crystal-info">
<span id="currentCrystalCount"></span> / <span id="crystalSpend">500</span> <span class="crystal-icon"></span>
</div>
</div>
<div class="replay-icon-btn"></div>
</div>
<div id="page-challenges-success" style="display: none;">
<h1>CHALLENGE <span id="level-num">1</span></h1>
<h1>COMPLETE!</h1>
<div class="trophy-icon"></div>
<div class="title">
<h1>D E S I R E</h1>
<h2>P ◈ A ◈ T ◈ H</h2>
<div class="back-icon-btn"></div>
</div>
</div>
<div id="page-setting" style="display: none;">
<div class="btns">
<div id="music-btn" class="music-icon-btn"></div>
<div class="back-icon-btn"></div>
</div>
</div>
</body>
</html>