1
0
Fork 0
Browse Source

feat: add range input to control gravity

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
combat-scorched-earth-from-outer-space
André Jaenisch 10 months ago
parent
commit
fdbdd3aaef
Signed by: ryuno-ki
GPG Key ID: 5A668E771F1ED854
  1. 3
      src/css/main.css
  2. 13
      src/index.html

3
src/css/main.css

@ -261,3 +261,6 @@ textarea {
}
}
label span {
display: block;
}

13
src/index.html

@ -17,6 +17,19 @@
</section>
<section data-scene="game">
<canvas id="game" width="300" height="450"></canvas>
<div>
<label>
<span>Manipulate the gravity!</span>
<input
id="gravity"
type="range"
min="-100"
max="100"
value="0"
step="any"
/>
</label>
</div>
</section>
<section data-scene="credits">
<p>

Loading…
Cancel
Save