Skip to content

Commit

Permalink
funciona, falta centrar
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoVinaccia committed Oct 18, 2024
1 parent cb7ce78 commit 410fa78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
File renamed without changes
14 changes: 6 additions & 8 deletions juegoAjedrez2.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ object juegoAjedrez2{
method iniciar(){
game.removeVisual(pantallaInicio)
game.addVisualCharacter(reyNegro)
game.boardGround("fondo.png")
spawnEnemigo.comenzarSpawn()

keyboard.w().onPressDo({reyNegro.moverArriba()})
keyboard.s().onPressDo({reyNegro.moverAbajo()})
keyboard.space().onPressDo({reyNegro.disparar()})
Expand All @@ -25,12 +23,12 @@ object juegoAjedrez2{
method pantallaInicio() {
game.height(5)
game.width(9)
game.addVisualCharacter(pantallaInicio)
juegoPausado = true
reyNegro.elJugadorPauso(verdadero)
self.iniciar()
game.boardGround("fondo.png")
game.addVisualCharacter(pantallaInicio)
keyboard.i().onPressDo({self.iniciar()})
}


method pausarJuego() {
juegoPausado = true
game.say(self, "Presione R para reiniciar el juego")
Expand All @@ -46,8 +44,8 @@ object juegoAjedrez2{
}

object pantallaInicio {
method position() = game.center()
method image() = "pantallaInicio.png"
method position() = game.at(0,0)
method image() = "pantalla.png"
}

object reyNegro {
Expand Down

0 comments on commit 410fa78

Please sign in to comment.