From c0c8ec18dfefc60c942b614a8b9c9f0881553bf4 Mon Sep 17 00:00:00 2001 From: UrielBove Date: Sun, 10 Nov 2024 01:33:07 -0300 Subject: [PATCH] Avanzamos con la visual de la vida de la base --- example.wlk | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/example.wlk b/example.wlk index ad47c9b..2dce6d9 100644 --- a/example.wlk +++ b/example.wlk @@ -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 @@ -399,7 +404,7 @@ object interfaz { method empezarJuego() { game.addVisual(militar) - + self.desbloquearTeclas() self.colisiones()