GammelJAN 5 years ago
commit 490e572c8a

@ -43,6 +43,8 @@ public class Monster {
}
public void move(){
checkTarget();
this.xPos += this.movementX;
this.yPos += this.movementY;
}
@ -54,7 +56,8 @@ public class Monster {
}
private void generateNewTarget(){
// TODO: generate new target coordinates
xPosTarget = (int) (Math.random() * 1400) + 100;
yPosTarget = (int) (Math.random() * 700) + 100;
calculateMovement();
}

Loading…
Cancel
Save