Log In  

@kozie

Follow
Follow

Web & software developer at Cream Internetbureau. Interests: Coding, Interwebz, Pixels, Game dev, PICO-8. Sucker for old school. Yada yada

Source: https://twitter.com/kozie87

Cart [#15112#] | Code | 2015-10-07 | No License | Embed
4

Cart [#15044#] | Code | 2015-10-06 | No License | Embed
4

Cart [#15034#] | Code | 2015-10-06 | No License | Embed
4

==============
Arrow keys: move cursor
Z: move player to cursor

Hi!

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.

Cheers!

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

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-06-19 01:41 | 0.059s | 4194k | Q:34