Skip to content

Commit

Permalink
- dodati opis (normal, fly, imune to lava)
Browse files Browse the repository at this point in the history
  • Loading branch information
mudroljub committed Feb 19, 2025
1 parent c7bbd3b commit 5f6064b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ npx live-server

## TODO

- avatar
- dodati fly i dodati opis (normal, fly, imune to lava)

- test on mobile
- joystick:
- doesn't return to its place after release
Expand Down
15 changes: 12 additions & 3 deletions examples/80-scenes/random-boxes/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,18 @@ const callback = async e => {

const subtitle = /* html */`
<div class="game-screen-select">
<input type="image" id="STONE" src="/assets/images/avatar/STONE.jpg" style="border: 3px solid black" />
<input type="image" id="DISCO" src="/assets/images/avatar/DISCO.jpg" style="border: 3px solid black" />
<input type="image" id="LAVA" src="/assets/images/avatar/LAVA.jpg" style="border: 3px solid black" />
<div>
<input type="image" id="STONE" src="/assets/images/avatar/STONE.jpg" style="border: 3px solid black" /><br>
Normal
</div>
<div>
<input type="image" id="DISCO" src="/assets/images/avatar/DISCO.jpg" style="border: 3px solid black" /><br>
Can fly
</div>
<div>
<input type="image" id="LAVA" src="/assets/images/avatar/LAVA.jpg" style="border: 3px solid black" /><br>
Immune to lava
</div>
</div>
`
gui.showGameScreen({ title: 'Choose your avatar', subtitle, callback })

0 comments on commit 5f6064b

Please sign in to comment.