Skip to content

Commit

Permalink
agrego fondo
Browse files Browse the repository at this point in the history
  • Loading branch information
Santibouvet committed Oct 16, 2024
1 parent dfaccc4 commit 45231b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Binary file added assets/fondo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions juegoAjedrez2.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ object juegoAjedrez2{
game.height(5)
game.width(9)

game.addVisual(fondo)
game.addVisualCharacter(reyNegro)
spawnEnemigo.comenzarSpawn()

Expand All @@ -20,7 +21,7 @@ object juegoAjedrez2{
// keyboard.r().onPressDo({ if(juegoPausado) self.reiniciarJuego() }) No funca esto
}

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

}

object fondo {
method image() = "fondo.png"
method position() = game.at(0, 0) // Asegúrate de ajustar la posición y tamaño si es necesario
}

object reyNegro {
var vida = 100
Expand Down

0 comments on commit 45231b6

Please sign in to comment.