Skip to content

Commit

Permalink
fixing capy scene
Browse files Browse the repository at this point in the history
  • Loading branch information
dlopezalvas committed Dec 19, 2023
1 parent d5ada9f commit 08993ef
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 16 additions & 2 deletions src/escenas/libroPrimaria/EscapeEnYacare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ class EscapeEnYacare extends EscenaActividad {
this.fondo = new Fondo('fondo.capy.png', 0, 0);

this.cuadricula = new Cuadricula(0,0,4,5,
EscenaCapy.opsCuadricula(),
EscenaCapy.opsCasilla());
this.opsCuadricula(),
this.opsCasilla());

this.telescopio = new TelescopioEntregable();
this.cuadricula.agregarActor(this.telescopio, 1, 4)
Expand Down Expand Up @@ -243,4 +243,18 @@ class EscapeEnYacare extends EscenaActividad {
this.estado=builder.estadoInicial();
}


opsCuadricula() {
return { ancho: 400, alto: 380 };
}
opsCasilla() {
return {
grilla: 'casillas.capy.png',
cantFilas: 1,
cantColumnas: 16,
bordesDecorados: true,
relAspecto: 1,
};
}

}
4 changes: 2 additions & 2 deletions src/escenas/libroPrimaria/EscenaCapy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ class EscenaCapy extends EscenaDesdeMapa {
cuadriculaY() {
return -20;
}
static opsCuadricula() {
opsCuadricula() {
return { ancho: 400, alto: 380 };
}
static opsCasilla() {
opsCasilla() {
return {
grilla: 'casillas.capy.png',
cantFilas: 1,
Expand Down

0 comments on commit 08993ef

Please sign in to comment.