Skip to content

Commit

Permalink
Agrego musica de fondo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucard02 committed Nov 14, 2024
1 parent 38b4df3 commit efd74ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file added assets/musiquita.mp3
Binary file not shown.
5 changes: 5 additions & 0 deletions example.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ object puntos{

object juegoDeDinosaurio {
method iniciar() {
const musiquita = game.sound("musiquita.mp3")
musiquita.shouldLoop(true)
musiquita.volume(0.1)
game.schedule(500, {musiquita.play()})
keyboard.p().onPressDo({musiquita.pause()})
game.width(45)
game.height(20)
game.addVisual(dinosaurio)
Expand Down

0 comments on commit efd74ca

Please sign in to comment.