-
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
Showing
33 changed files
with
366 additions
and
59 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
/// <reference path = "../actores/ActorAnimado.ts" /> | ||
|
||
class PelotaAnimada extends ActorAnimado { | ||
static _grilla = 'pelotaAnimada.png' | ||
|
||
constructor(x: number, y: number) { | ||
super(x, y, { grilla: 'pelotaAnimada.png', cantColumnas: 16 }) | ||
super(x, y, { cantColumnas: 17 }) | ||
this.definirAnimacion("patear", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 12) | ||
this.definirAnimacion("desaparecer", [16],12) | ||
} | ||
|
||
} |
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,39 @@ | ||
/// <reference path="../../ActorAnimado.ts"/> | ||
/// <reference path="../../../comportamientos/ComportamientoAnimado.ts"/> | ||
|
||
class Chuy extends ActorAnimado { | ||
static _grilla = 'actor.chuy.png' | ||
|
||
constructor() { | ||
super(0,0,{ | ||
cantColumnas: 10,cantFilas: 11}); | ||
this.definirAnimacion("parado", | ||
new Cuadros(5).repetirVeces(16) | ||
.concat([6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 11, 11, 11, 16, 17, 18, 18, 18, 18, 18, 19, 20, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 47, 47, 47, 47, 47, 47, 47, 47, 47, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50]) | ||
.concat(new Cuadros(5).repetirVeces(30)) | ||
.concat([6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 11, 11, 11, 16, 17, 18, 18, 18, 18, 18, 19, 20, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 47, 47, 47, 47, 47, 47, 47, 47, 47, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50]) | ||
.concat(new Cuadros(5).repetirVeces(30)) | ||
.concat([6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 11, 12, 13, 14, 15, 11, 11, 11, 16, 17, 18, 18, 18, 18, 18, 19, 20, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 47, 47, 47, 47, 47, 47, 47, 47, 47, 49, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50]) | ||
.concat(new Cuadros(5).repetirVeces(16)), | ||
20, true); | ||
this.definirAnimacion("correr", [68, 69, 70, 71, 72, 73, 74, 75, 76], 12); | ||
this.definirAnimacion("correrChocando", [68, 69, 70, 71, 72, 73, 74, 75, 76], 12) | ||
this.definirAnimacion("obstaculo", [0, 1, 1, 2, 2, 3, 3, 4, 4, 4], 12) | ||
this.definirAnimacion("error", [101, 101, 101, 102, 102, 103, 103, 104, 104, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105] | ||
, 12) | ||
this.definirAnimacion("recoger", [97, 98, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 100, 97], 12); | ||
this.definirAnimacion("usarPaleta", [51, 52, 53, 54, 55, 56, 57, 58, 57, 56, 55, 56, 57, 58, 57, 56, 55, 56, 57, 58, 57, 56, 55, 56, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67], 12); | ||
this.definirAnimacion("rebotarPelota", [87, 88, 89, 90, 91, 92, 93, 92, 91, 90, 94, 95, 90, 91, 92, 93, 91, 94, 91, 93, 90, 94, 96, 87, 87, 87, 87], 12); | ||
this.definirAnimacion("patear", [87, 88, 89, 90, 91, 92, 93, 92, 91, 90, 94, 95, 90, 91, 92, 93, 91, 94, 91, 93, 90, 94, 96, 87, 87, 87, 87], 12) | ||
this.definirAnimacion("rebotarPulpito", [77, 78, 79, 80, 81, 82, 83, 82, 81, 80, 84, 85, 80, 81, 82, 83, 81, 84, 81, 83, 80, 84, 86, 77, 77, 77, 77], 12); | ||
} | ||
|
||
|
||
puedeMoverseAbajo(){ | ||
return this.tocandoFlechaAbajo() && !this.tieneEnLaCasillaDeAbajo("Obstaculo") | ||
} | ||
|
||
puedeMoverseDerecha(){ | ||
return this.tocandoFlechaDerecha() && !this.tieneEnLaCasillaASuDerecha("Obstaculo") | ||
} | ||
} |
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,9 @@ | ||
/// <reference path="../../ActorAnimado.ts"/> | ||
|
||
class Paleta extends ActorAnimado { | ||
static _grilla = 'actor.paleta.png' | ||
|
||
constructor() { | ||
super(0, 0, {cantColumnas:1, cantFilas: 1}); | ||
} | ||
} |
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,19 @@ | ||
/// <reference path="../../ActorAnimado.ts"/> | ||
|
||
class Pulpito extends ActorAnimado { | ||
static _grilla = 'actor.pelota.png' | ||
|
||
constructor() { | ||
super(0, 0, { cantColumnas: 2 }); | ||
this.definirAnimacion("desaparecer", [1], 12); | ||
} | ||
} | ||
|
||
class PingPong extends ActorAnimado { | ||
static _grilla = 'actor.pelotita.png' | ||
|
||
constructor() { | ||
super(0, 0, { cantColumnas: 2 }); | ||
this.definirAnimacion("desaparecer", [1], 12); | ||
} | ||
} |
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,9 @@ | ||
/// <reference path="../../ActorAnimado.ts"/> | ||
|
||
class Trofeo extends ActorAnimado { | ||
static _grilla = 'actor.trofeo.png' | ||
|
||
constructor() { | ||
super(0, 0, {cantColumnas:1, cantFilas: 1}); | ||
} | ||
} |
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
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.
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.
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.
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.
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.
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.
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.
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
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,39 @@ | ||
/// <reference path = "FutbolRobots.ts" /> | ||
|
||
class FutbolAlSur extends FutbolRobots { | ||
|
||
static clasesDeActoresInvolucrados(): typeof ActorAnimado[] { | ||
return [Chuy, PelotaAnimada]; | ||
}; | ||
|
||
static imagenesAdicionales(): string[] { | ||
return ['casilla.futbolChuy1.png', 'casilla.futbolChuy2.png'].concat(Obstaculo.imagenesPara('chuy')); | ||
} | ||
|
||
static pathFondo(): string { | ||
return 'fondo.chuy.png'; | ||
} | ||
|
||
ajustarAutomata() { | ||
this.automata.traer_al_frente() | ||
this.automata.escala *= this.escalaSegunCuadricula(3.3); | ||
this.automata.setY(this.automata.getY() + this.automata.getAlto() / 4); | ||
this.automata.setX(this.automata.getX() + 10) | ||
} | ||
|
||
obtenerAutomata() { | ||
return new Chuy(); | ||
} | ||
|
||
obtenerFondo() { | ||
return new Fondo('fondo.chuy.png', 0, 0); | ||
} | ||
|
||
imagenCasillas() { | ||
return 'casilla.futbolChuy1.png' | ||
} | ||
|
||
imagenCasillasInicio() { | ||
return 'casilla.futbolChuy2.png' | ||
} | ||
} |
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
Oops, something went wrong.