Skip to content

Commit

Permalink
balanceo de juego para que no sea tan dificil
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoVinaccia committed Oct 14, 2024
1 parent 0937c27 commit 054a380
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions juegoAjedrez2.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object reyNegro {
game.addVisual(balaNueva)
balaNueva.empezarMoverse()
game.onCollideDo(balaNueva, {objeto=>self.reaccionar(objeto, balaNueva)})
game.schedule(3000, { cooldown =1 })
game.schedule(1500, { cooldown =1 })
}
}

Expand Down Expand Up @@ -88,7 +88,7 @@ class Bala {
}
}
method empezarMoverse() {
game.onTick(1000, "moverse", {self.moverse()})
game.onTick(200, "moverse", {self.moverse()})
}
method recibirDanio(x){
}
Expand Down Expand Up @@ -135,7 +135,7 @@ class Peon {
class Caballo {

method empezarMoverse() {
game.onTick(1000, "moverseCaballo", {self.moverse()})
game.onTick(2000, "moverseCaballo", {self.moverse()})
}

var vida = 75
Expand Down Expand Up @@ -342,13 +342,13 @@ class Caballo {
object spawnEnemigo {

method comenzarSpawn() {
game.onTick(5000, "apareceEnemigo", {self.aparecerPieza()})
game.onTick(3000, "apareceEnemigo", {self.aparecerPieza()})
}

var numeroPieza = 0

method numeroRandom() {
numeroPieza = 2.randomUpTo(2).round() // deberia ser up to 5
numeroPieza = 1.randomUpTo(2).round() // deberia ser up to 5
numeroPieza = numeroPieza.round()
}

Expand Down

0 comments on commit 054a380

Please sign in to comment.