diff --git a/src/escenas/BuscandoLasEstrellas.ts b/src/escenas/BuscandoLasEstrellas.ts index b6533ca..2b19d39 100644 --- a/src/escenas/BuscandoLasEstrellas.ts +++ b/src/escenas/BuscandoLasEstrellas.ts @@ -3,7 +3,6 @@ /// /// /// -/// /// /// @@ -47,13 +46,14 @@ class BuscandoLasEstrellas extends EscenaActividad { } agregarAmigos() { + const posiciones = [ { x: 15, y: 10}, { x: 20, y: 30}, { x: 30, y: 50 }]; this.amigos.push(new Chuy()); this.amigos.push(new Yvoty()); this.amigos.push(new Capy()); this.amigos.forEach((a,i) => { this.cuadricula.agregarActor(this.amigos[i], 0, 0, false); - a.x -= 10*(i+1); - a.y -= 10+(20*i); + a.x -= posiciones[i].x; + a.y -= posiciones[i].y; }); }