-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cad8177
commit e11c368
Showing
7 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/// <reference path="../../ActorAnimado.ts"/> | ||
/// <reference path="../../../comportamientos/ComportamientoAnimado.ts"/>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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// <reference path="../../ActorAnimado.ts"/> | ||
|
||
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); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/// <reference path = "Interactuar.ts" /> | ||
/// <reference path = "../actores/segundoCiclo/Capy/Lata.ts" /> | ||
|
||
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/// <reference path = "../libroPrimaria/EscenaDesdeMapa.ts" /> | ||
|
||
|
||
class EscenaCapySolo extends EscenaCapy { | ||
|
||
automata: CapySolo; | ||
|
||
clasesDeActoresInvolucrados(): typeof ActorAnimado[] { | ||
return super.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) | ||
} | ||
|
||
} |