-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (121 loc) · 3.13 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Plane Shooter</title>
<link rel="shortcut icon" href="./favicon.ico" />
<link rel="stylesheet" href="./html/resources/default.css" />
<link rel="stylesheet" href="./T3/assets/css/style.css" />
<link rel="stylesheet" href="./libs/other/buttons.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
body {
font-family: Monospace;
text-align: center;
}
#speedometer {
color: #ffffff;
background-color: #990000;
position: absolute;
bottom: 0px;
padding: 5px;
}
#info {
position: absolute;
top: 0px;
width: 100%;
padding: 5px;
}
#joystickWrapper1 {
pointer-events: auto;
position: absolute;
bottom: 0;
left: 0;
display: block;
touch-action: manipulation;
}
</style>
</head>
<body>
<!-- Import maps polyfill -- Remove this when import maps will be widely supported-->
<script
async
src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"
></script>
<script type="importmap">
{ "imports": { "three": "./build/three.module.js" } }
</script>
<div id="joystickWrapper1"></div>
<button style="bottom: 20px; right: 120px" id="A" class="video-game-button">
A
</button>
<button style="bottom: 20px; right: 20px" id="B" class="video-game-button">
B
</button>
<button
style="
top: 10px;
right: 30px;
width: 1emp;
line-height: 1.4em;
font-size: 10pt;
background-color: #cccccc;
background-image: none;
"
id="btn-p"
class="video-game-button"
>
P
</button>
<button
style="
top: 10px;
right:100px;
width: 1emp;
line-height: 1.4em;
font-size: 10pt;
background-color: #cccccc;
background-image: none;
"
id="btn-g"
class="video-game-button"
>
G
</button>
<div class="flex-box" id="flex-box">
<div class="btn-start">
<button
id="startButton"
class="startButton"
style="background-color: red"
>
START
</button>
</div>
<div class="btn-restart">
<button
id="restartButton"
class="startButton"
style="background-color: red; display: none"
>
RESTART
</button>
</div>
<div class="loader" id="loader"></div>
</div>
<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script
async
src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"
></script>
<div id="webgl-output">
<script type="text/javascript">
var extraPath = "/T3/";
var mobile = true;
</script>
<script src="./libs/other/ammo.wasm.js"></script>
<script src="./libs/other/nipplejs.js"></script>
<script type="module" src="./T3/main.js"></script>
</div>
</body>
</html>