Skip to content

Commit

Permalink
Avanzamos con la visual de la vida de la base
Browse files Browse the repository at this point in the history
  • Loading branch information
UrielBove committed Nov 10, 2024
1 parent 74f9887 commit c0c8ec1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions example.wlk
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,13 @@ class SuperManzana inherits ManzanaDorada {
}

object base {
var property vida = 3

var property vida = 2
var property image = "foto vida"
//method image() = "image"
/*var position = game.at(x, y)
const x = game.width() - 1 // Aparecer en el borde derecho
const y = game.height() - 1 // Posición aleatoria en el eje y
*/
method restarVida(nuevaVida){
if(vida>1){
vida -= nuevaVida
Expand Down Expand Up @@ -399,7 +404,7 @@ object interfaz {
method empezarJuego() {

game.addVisual(militar)

self.desbloquearTeclas()
self.colisiones()

Expand Down

0 comments on commit c0c8ec1

Please sign in to comment.