Ludraaa / PurrfectLife

Repository containing all the game files of PurrfectLife, a little side project of mine.
0 stars 0 forks source link

Implement Click to move movement #3

Open Ludraaa opened 1 day ago

Ludraaa commented 1 day ago

This issue is based on the highlighting tiles issue, since a lot of the functionality is essentially the same. Pathfindig is already implemented (very rudimentally, as soon as there is obstacles in the way, it will no longer work). The targetTile of the player just has to be set to the clicked tile. if a wall or different (not yet implemented) object is clicked instead, it should not trigger the player to walk there.

Ludraaa commented 1 day ago

Added astar based pathfinding, no obstacles for now, so its pretty hard to test. it's still a little janky and the screen keeps shaking once the target is reached. best fix might be to set up a smooth following camera