Posted June 16, 2023 by Nitro-Carwash
Fairly self-explanatory. The player will be able to toggle between "path" and "wall" tiles by clicking, and they can expand their area of influence by purchasing the tiles behind the "fog of war" (black), so long as those tiles are connected to the areas they have expanded.
In order for bees to generate resources, they need to have a path to the outside in order to pick up pollen. This pathfinding uses a BFS (or BeeFS) in order to find the shortest path outside, and I added a cute little debug view to draw the path to the exit, so long as one is possible. This gif shows the path immediately updating whenever a tile touching or on it is updated.
And finally -- when bees have access to the outside, they produce honey! Or as the debug view calls it, Element 0.