diff --git a/package-lock.json b/package-lock.json index 9c968d9..215d179 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pilas-bloques-exercises", - "version": "1.4.17", + "version": "1.4.18", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 745919b..54b9363 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pilas-bloques-exercises", - "version": "1.4.17", + "version": "1.4.18", "description": "Exercises for Pilas Bloques", "homepage": "http://pilasbloques.program.ar", "author": { diff --git a/src/assets/casilla.chuy.png b/src/assets/casilla.chuy.png new file mode 100644 index 0000000..e724ccb Binary files /dev/null and b/src/assets/casilla.chuy.png differ diff --git a/src/escenas/PaleteandoConParametros.ts b/src/escenas/PaleteandoConParametros.ts new file mode 100644 index 0000000..1ff3630 --- /dev/null +++ b/src/escenas/PaleteandoConParametros.ts @@ -0,0 +1,75 @@ +/// +/// +/// +/// + + +class PaleteandoConParametros extends EscenaActividad { + cuadricula; + cantidadFilas; + cantidadColumnas; + + iniciar() { + this.cantidadFilas = 5; + this.cantidadColumnas = 5; + + let matriz = [ + ['T','T','T','T','T'], + ['T','F','F','F','T'], + ['T','F','F','F','T'], + ['T','F','F','F','T'], + ['T','T','T','T','T'] + ]; + + + this.cuadricula = new CuadriculaEsparsa(0, 0, + { separacionEntreCasillas: 5, ancho: 360, alto: 360}, + {grilla: 'casilla.chuy.png'}, matriz) + + this.fondo = new Fondo('fondo.chuy.png', 0, 0); + + this.agregarPelotasDePingPong(); + + this.automata = new Chuy(); + this.cuadricula.agregarActor(this.automata, 0, 0); + this.automata.escala *= 3; + this.automata.y += 50; + } + + private agregarPelotasDePingPong() { + + for (var i=1; i