width: 6em;
margin: -1em 0;
transition: 150ms transform;
- }
- .ui-page.options .feather img {
- transform: translateX(-1em);
+ transform: scaleY(-1) translateX(-1em);
}
.ui-page.options .feather input:checked + img {
- transform: translateX(1em);
+ transform: scaleY(-1) translateX(1em);
}
.ui-page.options .feather label:hover img, .ui-page.options .feather label:focus-within img {
filter:
.ui-page.options .feather label:nth-child(8) { z-index: 43; }
.ui-page.options .feather label:nth-child(9) { z-index: 42; }
.ui-page.options .feather label:nth-child(10) { z-index: 41; }
+ .ui-page.options .feather label:nth-child(11) { z-index: 40; }
+ .ui-page.options .feather label:nth-child(12) { z-index: 39; }
+ .ui-page.options .feather label:nth-child(13) { z-index: 38; }
+ .ui-page.options .feather label:nth-child(14) { z-index: 37; }
+ .ui-page.options .feather label:nth-child(15) { z-index: 36; }
.ui-page.loading {
display: flex;
flex-direction: column;
<h3>Feather Customization</h3>
<p>You can change the feather’s visual appearance. This is an aesthetic choice with no impact on the game mechanics.</p>
<div class="feather">
-<label><input type="radio" name="upInTheAirGame-feather" value="blue"><img src="textures/feather.png" alt="Blue feather"></label>
-<label><input type="radio" name="upInTheAirGame-feather" value="red"><img src="textures/feather.png" alt="Red feather"></label>
-<label><input type="radio" name="upInTheAirGame-feather" value="green"><img src="textures/feather.png" alt="Green feather"></label>
-<label><input type="radio" name="upInTheAirGame-feather" value="black"><img src="textures/feather.png" alt="Black feather"></label>
-<label><input type="radio" name="upInTheAirGame-feather" value="brown"><img src="textures/feather.png" alt="Brown feather"></label>
+<label><input type="radio" name="upInTheAirGame-feather" value="blue"><img src="textures/feather-blue.png" alt="Blue feather"></label>
+<label><input type="radio" name="upInTheAirGame-feather" value="red"><img src="textures/feather-red.png" alt="Red feather"></label>
+<label><input type="radio" name="upInTheAirGame-feather" value="green"><img src="textures/feather-green.png" alt="Green feather"></label>
+<label><input type="radio" name="upInTheAirGame-feather" value="black"><img src="textures/feather-black.png" alt="Black feather"></label>
+<label><input type="radio" name="upInTheAirGame-feather" value="brown"><img src="textures/feather-brown.png" alt="Brown feather"></label>
+<label><input type="radio" name="upInTheAirGame-feather" value="brown"><img src="textures/feather-orange.png" alt="Orange feather"></label>
+<label><input type="radio" name="upInTheAirGame-feather" value="brown"><img src="textures/feather-purple.png" alt="Purple feather"></label>
</div>
</div>
</div>
'textures/cloud5a.png': 2066,
'textures/cloud5b.png': 2065,
'textures/cloud5c.png': 2066,
- 'textures/feather.png': 9196,
+ 'textures/feather-black.png': 1026,
+ 'textures/feather-blue.png': 1026,
+ 'textures/feather-brown.png': 1027,
+ 'textures/feather-ghost.png': 1023,
+ 'textures/feather-golden.png': 1027,
+ 'textures/feather-green.png': 1028,
+ 'textures/feather-orange.png': 1028,
+ 'textures/feather-purple.png': 1028,
+ 'textures/feather-red.png': 1024,
'textures/highcontrast-backdrop.png': 500,
'textures/logo.png': 5174,
'textures/pinwheel.png': 904,
game.ui.root.appendChild(keyboardModal);
});
});
-game.ui.root.querySelector('.options .keyboard button[value="reset"]').addEventListener('click', applySettings(game));
+game.ui.root.querySelector('.options .keyboard button[value="reset"]').addEventListener('click', (e) => {
+ const container = e.target.parentNode;
+ container.querySelector('button.up').value = 'ArrowUp|w';
+ container.querySelector('button.right').value = 'ArrowRight|d';
+ container.querySelector('button.down').value = 'ArrowDown|s';
+ container.querySelector('button.left').value = 'ArrowLeft|a';
+ applySettings(game);
+ loadSettings(game);
+});
game.ui.root.querySelectorAll('.ui-page .areatabs button').forEach((btn) => {
btn.addEventListener('click', (e) => {
btn.parentNode.querySelectorAll('button').forEach((otherBtn) => {