Skip to content

Commit

Permalink
mejora modo infinito, slimes, cambio de pantalla en nivel final
Browse files Browse the repository at this point in the history
  • Loading branch information
MNVallone committed Nov 29, 2024
1 parent bd369c2 commit c4b4dca
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
9 changes: 4 additions & 5 deletions administradorDeJuego.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ object fondo{
method image() = imagen

method cambiarFondo(){

configuracion.quitarVisuals()
imagen = "MenuInicialVacio.png"
configuracion.quitarVisuals()
configuracion.agregarVisuals()
administradorDeOleadas.reiniciarVisual()
administradorDeMagos.reiniciarVisuals()


}

Expand Down Expand Up @@ -240,9 +242,6 @@ object configuracion {

game.addVisual(casa)

administradorDeMagos.reiniciarVisuals()


menu.iniciarTienda()
/* menu.accion()
cursor.accion() */
Expand Down
12 changes: 5 additions & 7 deletions administradorDeOleadas.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,6 @@ object administradorDeOleadas {

// Resetea el administrador de oleadas
method reset() {
self.frenarTickInicial()
oleadaInicial.interval(4000)
tickParaGenerarEnemigos.stop()
nivelActual.reset()
niveles.forEach({botonNivel=>botonNivel.nivel().resetearOleadas()})
self.frenarTickInicial()
oleadaInicial.interval(4000)
tickParaGenerarEnemigos.stop()
Expand All @@ -91,6 +86,11 @@ object administradorDeOleadas {
}
method recibeDanioMago(danio){}
method frenarEnemigo()= true

method reiniciarVisual(){
game.removeVisual(self)
game.addVisual(self)
}
}


Expand Down Expand Up @@ -125,8 +125,6 @@ class Nivel{
method terminarOleada() {
self.finOleada().volume(0.1)
self.finOleada().play()
self.finOleada().volume(0.1)
self.finOleada().play()

}

Expand Down
2 changes: 1 addition & 1 deletion magos.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Mago {

method reiniciarVisual(){
game.removeVisual(self)
game.schedule(50, {game.addVisual(self)})
game.addVisual(self)
}
}

Expand Down
2 changes: 0 additions & 2 deletions slime.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ class Slime {
self.vida(self.vida() - _danio)
tipo.accionAlRecibirDanio().apply(self)
return true
tipo.accionAlRecibirDanio().apply(self)
return true
}

method combinarProyectil(_tipo){return false}
Expand Down

0 comments on commit c4b4dca

Please sign in to comment.