Log In  

Cart #15112 | 2015-10-07 | Code ▽ | Embed ▽ | No License

Cart #15044 | 2015-10-06 | Code ▽ | Embed ▽ | No License

Cart #15034 | 2015-10-06 | Code ▽ | Embed ▽ | No License

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 :)

Update 2
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 :)

Update 3
Added v1.2 which has some more fancyness, like animating background, indicator and sound.

P#15035 2015-10-06 09:31 ( Edited 2015-10-07 21:44)

pretty sweet! now I wanna make warcraft I for pico-8

P#15055 2015-10-06 15:43 ( Edited 2015-10-06 19:43)

Check out Warlocked for Gameboy Color. ;)

This looks promising, keep it up!

P#15058 2015-10-06 16:05 ( Edited 2015-10-06 20:08)

I guess the problem is in the code that flooddebug activates?

P#15068 2015-10-06 19:17 ( Edited 2015-10-06 23:17)

Thanks for promising responses :)

The flooddebug option makes the process unintentionally slow. This is actually just fine as it's more easy to follow the actual process of the 'pathfinding ' algorithm.
I guess if it would show the process at the normal speed it would be difficult to follow.

P#15081 2015-10-07 06:56 ( Edited 2015-10-07 10:56)

yes, i agree

P#15086 2015-10-07 12:57 ( Edited 2015-10-07 16:57)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-17 01:36:55 | 0.020s | Q:23