diff --git a/core/src/com/trs/game/model/Monster.java b/core/src/com/trs/game/model/Monster.java index b0c3efb..d3405c8 100644 --- a/core/src/com/trs/game/model/Monster.java +++ b/core/src/com/trs/game/model/Monster.java @@ -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(); }