Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detalles yacare #64

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pilas-bloques-exercises",
"version": "1.4.24",
"version": "1.4.25",
"description": "Exercises for Pilas Bloques",
"homepage": "http://pilasbloques.program.ar",
"author": {
Expand Down
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
Loading