itch.io is community of indie game creators and players

Devlogs

Mining Pathfinding sucks

DFclone
A browser game made in HTML5

I of course have much bigger ideas for where this can go, I have a mind map that represents how far I’ve imagined complexity https://www.tldraw.com/v/Vsy_c_7v-x0sa5u5v0JfVcTi9Q?page=page%3AQk3-89VyWUjdoYIF7zV-m&viewport=-2534%2C-2409%2C8007%2C3866

Love that tldraw app

I am disappointed with how much lag happens when a few dwarves mine out rocks that have traversable tiles on all sides. The fewer open sides of the rock the better. I just need to come up with a more efficient algorithm to get to the mining stuff. I think if the dwarf would chomp out a section, moving a tile at a time, it would be more efficient than looping through all the tiles. I need to set up range limits with how far a dwarf will look to find a place to mine. That’s what took up most of my day, yurp. Totally worth it. Even though it’s 1:11 now.

I hope I get enough sleep to see my fiance tomorrow ♥

Files

  • 1000Dwarves.zip 6 MB
    Apr 08, 2023
  • stableBuggyMining.zip 6 MB
    Apr 15, 2023
Download DFclone
Read comments (1)