Skip to content

Commit

Permalink
Mejora enemigos.
Browse files Browse the repository at this point in the history
  • Loading branch information
seblaz committed Nov 27, 2019
1 parent 390897e commit b09103b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion estados/ia/BossIA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void EventoBossIA::resolver() {
float modX = restaPosicion.moduloX();
float modY = restaPosicion.moduloY();
if ( mod <= 1000 ) {
if( mod >= 400 ) {
if( mod >= 600 ) {
if( ciclo > 180){
estado->saltar();
}else{
Expand Down
8 changes: 4 additions & 4 deletions estados/ia/BuscarJugadores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ void EventoBuscarJugadores::resolver() {
float mod = restaPosicion.modulo();
float modX = restaPosicion.moduloX();
float modY = restaPosicion.moduloY();
if ( mod <= 700 ) {
if( mod >= 200 ) {
if ( mod <= 900 ) {
if( mod >= 600 ) {
estado->caminar(restaPosicion.x <= 0, restaPosicion.x > 0, restaPosicion.y < 0,
restaPosicion.y > 0);
}else{
if( ciclo < 50 && modX >= 120){
if( ciclo < 65 && modX >= 120){
estado->caminar(restaPosicion.x <= 0, restaPosicion.x > 0, restaPosicion.y < 0,
restaPosicion.y > 0);
}else if ( estadoDePersonaje->getEstado() == CAMINANDO && modX > 90 && modX < 120 && modY < 5 && ciclo < 55){
}else if ( estadoDePersonaje->getEstado() == CAMINANDO && modX > 90 && modX < 120 && modY < 5 && ciclo < 70){
estado->darGolpe();
}else{
estado->caminar(restaPosicion.x > 0, restaPosicion.x <= 0, restaPosicion.y > 0,
Expand Down

0 comments on commit b09103b

Please sign in to comment.