Web & software developer at Cream Internetbureau. Interests: Coding, Interwebz, Pixels, Game dev, PICO-8. Sucker for old school. Yada yada
Arrow keys: move cursor
Z: move player to cursor
I did like to share a simple test with a simple pathfinding mechanism which i learned mostly from this website (Red Blob Games).
When opening the code, one could set the flooddebug var to true to be able to see how the pathfinding finds its route.
What i did like to know is the following: When choosing a path further away from the 'player' it takes quite some time to eventually finish the pathfinding. Is this some limitation tied to PICO-8, is it bad coding or a combination of both?
Thanks in advance and have fun.
It seems the speed is just fine. Tho, turning on the flooddebug makes it slow again. I guess while developing the pico instance got i little bit slow.. or the computer i used (at work) is just weird.
Anyways, i updated the cart (to 1.1) with a target indicator :)
Back at work now, reran the 1.1 version again. The speed seems indeed just fine. I'm not quite sure why it was slow yesterday, even with the flooddebug turned off. I guess it was just a process or memory bug/thing. Well, whatever :)
Added v1.2 which has some more fancyness, like animating background, indicator and sound.