Skip to content

Commit

Permalink
add Sound FX ;P
Browse files Browse the repository at this point in the history
(En criollo: agrego efextos de sonido (carita sonriente))
  • Loading branch information
valenosa committed Nov 14, 2024
1 parent 9e27ab2 commit bf31fae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Binary file added assets/drag1.mp3
Binary file not shown.
Binary file added assets/pop1.mp3
Binary file not shown.
9 changes: 9 additions & 0 deletions stickyBlocks.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ object juegoStickyBlock {

self.ejecutarMovimiento(movimiento) //Mueve a los elementos del cuerpo

const moveSound = game.sound("drag1.mp3")
moveSound.volume(0.07)
moveSound.play()

compis.forEach({compi => compi.collideWith()}) // Ejecuta Nuesto "Collider"
}
}
Expand Down Expand Up @@ -181,6 +185,10 @@ object juegoStickyBlock {
//Setea el compi como elemento del cuerpo del personaje principal
method setAsCuerpo(){

const attachSound = game.sound("pop1.mp3")
attachSound.volume(0.15)
attachSound.play()

self.eliminarHitBoxes()

cuerpo.agregarACuerpo(self)
Expand Down Expand Up @@ -288,6 +296,7 @@ object juegoStickyBlock {
override method interactuarConPersonaje(pj){
//Verifica si ha ganado el nivel
const ganoNivel = cuerpo.victoriaValida()

if (ganoNivel){

//Sonido de Victoria
Expand Down

0 comments on commit bf31fae

Please sign in to comment.