-
Notifications
You must be signed in to change notification settings - Fork 1
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
Chuy #34
Chuy #34
Conversation
super(0,0,{ | ||
cantColumnas: 10,cantFilas: 11}); | ||
this.definirAnimacion("parado", | ||
new Cuadros(5).repetirVeces(16) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acá estaba el bug que hacía que se viera diferente, se estaba mostrando el cuadro 0 entre las animaciones. Puse el primer cuadro de la animación, en este caso el 5.
puedeMoverseAbajo(){ | ||
return this.tocandoFlechaAbajo() && !this.tieneEnLaCasillaDeAbajo("Obstaculo") | ||
} | ||
|
||
puedeMoverseDerecha(){ | ||
return this.tocandoFlechaDerecha() && !this.tieneEnLaCasillaASuDerecha("Obstaculo") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Necesarios para los ejercicios de laberintos, tienen en cuenta los obstaculos para moverse, y si está en una última fila/columna no deja moverse (usando los tocandoFlecha
de los ejercicios viejos)
noHay(actor): boolean { | ||
return this.contarActoresConEtiqueta(actor) == 0 | ||
} | ||
|
||
todosLosActoresCumplen(actor, estado) { | ||
return this.obtenerActoresConEtiqueta(actor).every(o => o.nombreAnimacionActual() == estado); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Como se usan tanto con Yvoty, Chuy y Mañic, tenía más sentido ponerlos acá
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfecto !!
noHayPelotas(): boolean { | ||
return this.noHay("Pulpito") && this.noHay("PingPong") && this.todosLosActoresCumplen("PelotaAnimada", "patear") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Patear es el nombre de la animación que queda en la pelota una vez que fue pateada, no la cambie para no hacer lío
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qué laburo!
Co-authored-by: asanzo <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sin palabras... todo ok
Resolves Program-AR/pilas-bloques-ember#1306
pilas-bloques: Program-AR/pilas-bloques-ember#1337