Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent turtles moving beyond the world border
As tiles outside the world border are not ticked, turtles are rendered entirely useless. Furthermore, the turtle animation will never progress resulting in visual glitches. In order to avoid this, we ensure the target position is within the world border when moving to it.
- Loading branch information
Showing with 10 additions and 5 deletions.