-
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
Casilla final - parte 1 #56
Conversation
new Cuadros(32).repetirVeces(18) | ||
.concat([33, 34, 34, 32, 32, 32, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 44, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32]) | ||
.concat(new Cuadros(32).repetirVeces(18)) | ||
.concat([33, 34, 34, 32, 32, 32, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 44, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32]) |
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.
Esto es un fix para la animación de Mañic
static imagenesAdicionales(): string[] { | ||
return [Casilla, Obstaculo, MetaFinal].map(clase => clase.imagenesPara(this.nombreAutomata())).reduce((acc, list) => list.concat(acc), []); | ||
} | ||
|
||
/** | ||
* Devuelve el nombre del automata, usado para la precarga de metas finales, obstaculos y casillas | ||
* Pensado para redefinirse por escena. | ||
*/ | ||
static nombreAutomata() { | ||
return '' | ||
} |
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.
Para no tener que hacer copypaste con cada escena nueva, solo se define el nombre del automata
posicionValida(posFinal: [number, number]){ | ||
return posFinal[0] >= 0 && posFinal[1] >= 0 | ||
} |
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.
En Chuy habían dos casos que tenían una posición no válida para que tenga una posición pero chequee por si llegó al final del camino en lugar de si está en la posición final. Esto puede que cambie cuando definamos la gramática; estaba como trucazo para el caso de tener mapas con diferentes posiciones finales.
src/assets/pelotaAnimada.png
Outdated
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.
todosLosActoresCumplen(actor, estado) { | ||
return this.obtenerActoresConEtiqueta(actor).every(o => o.nombreAnimacionActual() == estado); | ||
} | ||
|
||
telescopiosArreglados(): boolean { |
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.
Saque de Capy y Mañic métodos que ya existen en EscenaDesdeMapa
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.
Que bueno ! 💯
Lo bajé y hasta donde lo probé todo funciona joya !
Related Program-AR/pilas-bloques-ember#1435
pilas-bloques: Program-AR/pilas-bloques-ember#1487
Con el cambio de las pelotas con más calidad quedó un cachito más grande acá pero me parece que queda bien: