From 4bbaca55f47462fb2e053a2e13e27be8a4359146 Mon Sep 17 00:00:00 2001 From: Alfredo Sanzo Date: Mon, 25 Sep 2023 17:42:02 -0300 Subject: [PATCH] =?UTF-8?q?Fix=20im=C3=A1genes=20casillas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actores/Casilla.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/actores/Casilla.ts b/src/actores/Casilla.ts index 1d7b973..6051c8b 100644 --- a/src/actores/Casilla.ts +++ b/src/actores/Casilla.ts @@ -156,10 +156,10 @@ class Casilla extends ActorAnimado { } cuadroSegunPosicion() : number { - return 8 * Number(! this.hayArriba()) - + 4 * Number(! this.hayIzquierda()) - + 2 * Number(! this.hayAbajo()) - + Number(! this.hayDerecha()); + return 8 * Number(! this.casillaDeArriba()) + + 4 * Number(! this.casillaASuIzquierda()) + + 2 * Number(! this.casillaDeAbajo()) + + Number(! this.casillaASuDerecha()); } cambiarImagen(nombre, cantFilas = 1, cantColumnas = 1){ // TODO: FEOOOOOOO bugfix setter imagen del actor