Skip to content

Commit 5f6064b

Browse files
committed
- dodati opis (normal, fly, imune to lava)
1 parent c7bbd3b commit 5f6064b

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ npx live-server
1818

1919
## TODO
2020

21-
- avatar
22-
- dodati fly i dodati opis (normal, fly, imune to lava)
23-
2421
- test on mobile
2522
- joystick:
2623
- doesn't return to its place after release

examples/80-scenes/random-boxes/game.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,18 @@ const callback = async e => {
129129

130130
const subtitle = /* html */`
131131
<div class="game-screen-select">
132-
<input type="image" id="STONE" src="/assets/images/avatar/STONE.jpg" style="border: 3px solid black" />
133-
<input type="image" id="DISCO" src="/assets/images/avatar/DISCO.jpg" style="border: 3px solid black" />
134-
<input type="image" id="LAVA" src="/assets/images/avatar/LAVA.jpg" style="border: 3px solid black" />
132+
<div>
133+
<input type="image" id="STONE" src="/assets/images/avatar/STONE.jpg" style="border: 3px solid black" /><br>
134+
Normal
135+
</div>
136+
<div>
137+
<input type="image" id="DISCO" src="/assets/images/avatar/DISCO.jpg" style="border: 3px solid black" /><br>
138+
Can fly
139+
</div>
140+
<div>
141+
<input type="image" id="LAVA" src="/assets/images/avatar/LAVA.jpg" style="border: 3px solid black" /><br>
142+
Immune to lava
143+
</div>
135144
</div>
136145
`
137146
gui.showGameScreen({ title: 'Choose your avatar', subtitle, callback })

0 commit comments

Comments
 (0)