Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(3 edits)

Thanks

The algorithm takes in mind how far is the place you make a new path, If you make the path too far it has to be a bit longer for the player to follow.
On side note, the hero won't go into a straight line in front of it (horizontal or vertical) if it isn't at least ~12? tiles long (with the last few being tiles that the hero has not been on. Turning a tile into wall and back into path does reset the tile-visit flag)

It's also very possible that i just messed up something, as that's my first time trying to make a path-finding algorithm.
I would generally ask you to help me reproduce the issue or/and run the desktop version.
(The desktop version has some debug flags enabled that show  info on the path-finding algorithm, but currently i only have Linux build set-up)

It's also completely fine if you don't want to spent that much time into it.
I'll eventually be reworking that algorithm entirely, since i didn't manage to add a lot of things i wanted to into it,
It also needs some optimizations to not slow-down the game when the map expands too much.


P. S.:  You should make sure the path is actually connected.
The web version of the game is slower and it handles less mouse events.
Building path doesn't work fine when you drag the mouse too fast.
I didn't have the time to fix this.