diff --git a/assets/saltoDino.mp3 b/assets/saltoDino.mp3 new file mode 100644 index 0000000..546a505 Binary files /dev/null and b/assets/saltoDino.mp3 differ diff --git a/example.wlk b/example.wlk index 266d4e6..660dc3d 100644 --- a/example.wlk +++ b/example.wlk @@ -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 @@ -87,6 +89,7 @@ object dinosaurio { method saltar() { estado.salto() + game.sound("saltoDino.mp3").play() } method hacerSalto() {