Skip to content

Commit

Permalink
detalles yacare
Browse files Browse the repository at this point in the history
  • Loading branch information
tfloxolodeiro committed Nov 13, 2023
1 parent 4496bb2 commit 16b9fc3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/comportamientos/Escapar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ class Escapar extends MovimientoAnimado {
super.preAnimacion();
}

mensajeDeError(){
return "Para escapar hace falta un transporte"
}

configurarVerificaciones() {
super.configurarVerificaciones();
this.verificacionesPre.push(new Verificacion(() => {
return this.estaEnTransporte();
}, "Para escapar hace falta un transporte"));
}, this.mensajeDeError()));
}

estaEnTransporte(){
Expand Down
10 changes: 10 additions & 0 deletions src/escenas/libroPrimaria/EscapeEnYacare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ManicConPelota extends ActorConEntregable{

const manic = new Manic()
manic.escala *= 0.06;
manic.y += 30;

super(0,0, { subactores: [manic]});

Expand All @@ -35,6 +36,8 @@ class ChuyConCargador extends ActorConEntregable{
constructor() {
const chuy = new Chuy()
chuy.escala *= 0.05;
chuy.y += 25;
chuy.x += 10;

super(0,0, { subactores: [chuy]});

Expand All @@ -51,6 +54,8 @@ class YvotySinEntregable extends ActorCompuesto {
constructor() {
const yvoty = new Yvoty()
yvoty.escala *= 0.05;
yvoty.y += 20;

super(0,0, { subactores: [yvoty]});
}

Expand Down Expand Up @@ -119,6 +124,7 @@ class CapyConSeguidores extends ActorCompuesto{
actualizar(): void{
super.actualizar()
this.subactores.forEach((seguidor, indice) => {
seguidor.espejado = this.espejado
if(seguidor !== this.entregableEnMano && indice !== 0){
this.espejarSeguidor(seguidor,indice)
}
Expand Down Expand Up @@ -155,6 +161,10 @@ class IrseEnYacare extends Escapar {
super.preAnimacion()
this.receptor.eliminarUltimoSubactor()
}

mensajeDeError(){
return "Necesito estar sobre el yacaré para irme"
}
}

class EscapeEnYacare extends EscenaActividad {
Expand Down

0 comments on commit 16b9fc3

Please sign in to comment.