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

Chuy #34

Merged
merged 17 commits into from
Jun 6, 2023
Merged

Chuy #34

merged 17 commits into from
Jun 6, 2023

Conversation

dlopezalvas
Copy link
Contributor

super(0,0,{
cantColumnas: 10,cantFilas: 11});
this.definirAnimacion("parado",
new Cuadros(5).repetirVeces(16)
Copy link
Contributor Author

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.

Comment on lines +32 to +38
puedeMoverseAbajo(){
return this.tocandoFlechaAbajo() && !this.tieneEnLaCasillaDeAbajo("Obstaculo")
}

puedeMoverseDerecha(){
return this.tocandoFlechaDerecha() && !this.tieneEnLaCasillaASuDerecha("Obstaculo")
}
Copy link
Contributor Author

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)

Comment on lines +94 to +101
noHay(actor): boolean {
return this.contarActoresConEtiqueta(actor) == 0
}

todosLosActoresCumplen(actor, estado) {
return this.obtenerActoresConEtiqueta(actor).every(o => o.nombreAnimacionActual() == estado);
}

Copy link
Contributor Author

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á

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfecto !!

Comment on lines +84 to +86
noHayPelotas(): boolean {
return this.noHay("Pulpito") && this.noHay("PingPong") && this.todosLosActoresCumplen("PelotaAnimada", "patear")
}
Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qué laburo!

@dlopezalvas dlopezalvas marked this pull request as ready for review May 27, 2023 04:03
@dlopezalvas dlopezalvas requested a review from a team May 30, 2023 00:18
Copy link
Contributor

@danielferro69 danielferro69 left a 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

@dlopezalvas dlopezalvas merged commit a309859 into master Jun 6, 2023
@dlopezalvas dlopezalvas deleted the chuy branch June 6, 2023 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pingüine "Chuy"
3 participants