diff --git a/src/actores/segundoCiclo/Capy/CapySolo.ts b/src/actores/segundoCiclo/Capy/CapySolo.ts new file mode 100644 index 0000000..76aa8a6 --- /dev/null +++ b/src/actores/segundoCiclo/Capy/CapySolo.ts @@ -0,0 +1,14 @@ +/// +/// e + +class CapySolo extends ActorAnimado { + static _grilla = 'actor.capySolo.png' + + constructor() { + super(0,0,{cantColumnas: 10, cantFilas: 12}); + this.definirAnimacion("parado", [52,52,52,52,52,52,52,52,52,52,52,51,50,49,49,50,51,52], 5, true); + this.definirAnimacion("correr", [21, 22, 23, 24, 25, 26, 27, 28, 26, 25, 24, 23, 22, 21], 20); + this.definirAnimacion("subirPajarito", [0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 20, 20], 20); + this.definirAnimacion("error", [52], 6); + } +} diff --git a/src/actores/segundoCiclo/Capy/Guyra.ts b/src/actores/segundoCiclo/Capy/Guyra.ts new file mode 100644 index 0000000..de4044e --- /dev/null +++ b/src/actores/segundoCiclo/Capy/Guyra.ts @@ -0,0 +1,11 @@ +/// + +class Guyra extends ActorAnimado { + static _grilla = 'actor.guyra.png' + + constructor() { + super(0, 0, {cantColumnas: 1, cantFilas: 5}); + this.definirAnimacion("parado",new Cuadros(3).repetirVeces(12).concat([0,1,2,2,2,2,2,2,2]),3,true); + this.definirAnimacion("desaparecer",[4],1); + } +} \ No newline at end of file diff --git a/src/assets/actor.capySolo.png b/src/assets/actor.capySolo.png index cdfa59c..abb0557 100644 Binary files a/src/assets/actor.capySolo.png and b/src/assets/actor.capySolo.png differ diff --git a/src/assets/actor.guyra.png b/src/assets/actor.guyra.png new file mode 100644 index 0000000..8b57ed6 Binary files /dev/null and b/src/assets/actor.guyra.png differ diff --git a/src/comportamientos/SubirPajarito.ts b/src/comportamientos/SubirPajarito.ts new file mode 100644 index 0000000..3f6a78a --- /dev/null +++ b/src/comportamientos/SubirPajarito.ts @@ -0,0 +1,26 @@ +/// +/// + +class SubirPajarito extends Interactuar { + + protected alInteractuar(): void { + super.alInteractuar() + this.interactuado().eliminar() + } + + objetoInteractuado(): any { + return this.interactuado() + } + + etiqueta(): string { + return "Guyra" + } + + animacionInteractuadoMientras(): string { + return "desaparecer" + } + + public nombreAnimacion(): String { + return "subirPajarito" + } +} \ No newline at end of file diff --git a/src/escenas/libroPrimaria/EscenaCapySolo.ts b/src/escenas/libroPrimaria/EscenaCapySolo.ts new file mode 100644 index 0000000..6905d49 --- /dev/null +++ b/src/escenas/libroPrimaria/EscenaCapySolo.ts @@ -0,0 +1,26 @@ +/// + + +class EscenaCapySolo extends EscenaCapy { + + automata: CapySolo; + + static clasesDeActoresInvolucrados(): typeof ActorAnimado[] { + return EscenaCapy.clasesDeActoresInvolucrados().concat([CapySolo, Guyra]) + }; + + obtenerAutomata(): CapySolo { + return new CapySolo(); + } + + estaResueltoElProblema(): boolean { + return super.estaResueltoElProblema() && this.noHay("Guyra") + } + + mapearIdentificadorAActor(id: string, nroFila: number, nroColumna: number): ActorAnimado { + if (id === 'G') return new Guyra() + + return super.mapearIdentificadorAActor(id,nroFila,nroColumna) + } + +} \ No newline at end of file