Skip to content

Commit

Permalink
Agrego sonido salto
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucard02 committed Nov 9, 2024
1 parent 6f22f2d commit cf7f55b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file added assets/saltoDino.mp3
Binary file not shown.
5 changes: 4 additions & 1 deletion example.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ object juegoDeDinosaurio {
game.whenCollideDo(dinosaurio, { elemento => elemento.teChocoElDino() })
}
}

object soundProgram {
keyboard.up().onPressDo({dinosaurio.saltar()})
}
object normal {
method puntosRestados(n) = n

Expand Down Expand Up @@ -87,6 +89,7 @@ object dinosaurio {

method saltar() {
estado.salto()
game.sound("saltoDino.mp3").play()
}

method hacerSalto() {
Expand Down

0 comments on commit cf7f55b

Please sign in to comment.