diff --git a/core/src/com/trs/game/model/Monster.java b/core/src/com/trs/game/model/Monster.java index 28e6951..a3825fc 100644 --- a/core/src/com/trs/game/model/Monster.java +++ b/core/src/com/trs/game/model/Monster.java @@ -34,6 +34,8 @@ public class Monster { } public void move(){ + checkTarget(); + this.xPos += this.movementX; this.yPos += this.movementY; } @@ -45,7 +47,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(); }