master
Jonathan Hager 6 years ago
parent 7af64d1eef
commit d0b985954a

@ -106,8 +106,6 @@ public class Controller extends ApplicationAdapter implements InputProcessor{
@Override
public void run() {
if(gs != null){
//m.updateEntitySprite(d.getCurrentEntities());
for(int i = 0; i < d.getCurrentEntities().length; i++){
if(d.getCurrentEntities()[i] != null){
// Gets the collisions relevant sprites
@ -121,6 +119,7 @@ public class Controller extends ApplicationAdapter implements InputProcessor{
boolean attacks = d.getCurrentEntities()[i].move((int) d.getPlayer().getxPos(), (int) d.getPlayer().getyPos());
// Attacke wird gestartet, wenn noch keine laueft
if(attacks && gs.entitySprites[i].getAttackState() == 0){
gs.entitySprites[i].startAttack();
}
@ -230,16 +229,12 @@ public class Controller extends ApplicationAdapter implements InputProcessor{
}
}
}
}
}
}
}
},0, 0.03f);
}

Loading…
Cancel
Save