Skip to content

Commit

Permalink
Fix imágenes casillas
Browse files Browse the repository at this point in the history
  • Loading branch information
asanzo committed Sep 25, 2023
1 parent 6024e74 commit 4bbaca5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/actores/Casilla.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bbaca5

Please sign in to comment.