-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
179 lines (171 loc) · 6 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Falling Sand - A relaxing sandbox game</title>
<meta name="description" content="A falling sand game." />
<meta property="og:description" content="A relaxing falling sand game." />
<meta property="og:type" content="website" />
<meta
property="og:title"
content="Falling Sand - A relaxing sandbox game"
/>
<meta property="og:url" content="https://sand.verybadfrags.com" />
<meta property="og:site_name" content="VeryBadFrags" />
<meta property="og:locale" content="en_US" />
<meta property="og:image" content="screenshot.png" />
<link
rel="alternate icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⏳</text></svg>"
/>
</head>
<body class="bg-dark text-light">
<div class="container">
<!-- Row -->
<div class="row mt-2">
<!-- Canvas -->
<div class="col mb-3">
<canvas
id="game"
class="border border-light rounded-2"
width="800"
height="800"
></canvas>
<!-- <canvas id="cursor" width="800" height="600"></canvas> -->
</div>
<!-- End Canvas -->
<!-- Settings -->
<div class="col mb-3">
<div class="card text-white bg-dark border-secondary text-start mb-3">
<div class="card-body">
<div class="mb-3">
<label for="brush-type" class="form-label">🖌️ Brush type</label>
<select
class="form-select"
name="brush-type"
id="brush-type"
>
</select>
</div>
<div class="mb-3">
<label for="brush-size" class="form-label">⭕ Size</label>
<small class="badge bg-secondary">+ -</small>
<div class="row">
<div class="col-12 col-md-8">
<label for="brush-size-slider" hidden
>Brush size slider</label>
<input
type="range"
class="form-range slider"
min="1"
max="32"
id="brush-size-slider"
/>
</div>
<div class="col">
<input
class="form-control"
type="number"
inputmode="numeric"
id="brush-size"
min="1"
max="32"
/>
</div>
</div>
</div>
<!-- Opacity -->
<div class="mb-3">
<label for="brush-opacity" class="form-label">☁️ Opacity</label>
<small class="badge bg-secondary"> { } </small>
<input
type="range"
class="form-range slider"
min="0"
max="100"
id="brush-opacity"
/>
</div>
<!-- Taps -->
<label>Taps</label>
<div class="row">
<div class="col-12">
<label for="select-tap1" hidden>Tap 1 type</label>
<select
class="form-select form-select-sm"
name="tap1"
id="select-tap1"
>
</select>
</div>
<div class="col-12">
<label for="select-tap2" hidden>Tap 2 type</label>
<select
class="form-select form-select-sm"
name="tap2"
id="select-tap2"
>
</select>
</div>
<div class="col-12">
<label for="select-tap3" hidden>Tap 3 type</label>
<select
class="form-select form-select-sm"
name="tap3"
id="select-tap3"
>
</select>
</div>
</div>
<!-- Dynamic lights -->
<div class="form-check mb-3">
<input
class="form-check-input"
type="checkbox"
value=""
id="dynamic-lights"
disabled="disabled"
/>
<label class="form-check-label" for="dynamic-lights">
Dynamic lights
</label>
</div>
<div class="mb-3">
<button
class="btn btn-outline-primary"
type="button"
id="play-pause"
aria-describedby="Play & Pause"
>
⏯️
</button>
<button
class="btn btn-sm btn-outline-danger"
type="button"
id="erase-button"
aria-describedby="Erase all"
>
🗑️
</button>
</div>
</div>
</div>
<!-- End Settings -->
<!-- Stats -->
<div class="card text-white bg-dark border-secondary text-start">
<div class="card-body">
<div class="mb-3">FPS: <span id="fps-val"></span></div>
<div class="mb-3">Engine: <span id="engine-val"></span> ms</div>
<div class="mb-3">Render: <span id="render-val"></span> ms</div>
</div>
</div>
<!-- End Stats -->
</div>
</div>
<!-- End row-->
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>