Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Justicefied

5
Posts
14
Followers
3
Following
A member registered Oct 31, 2022 · View creator page →

Creator of

Recent community posts

That is one potential solution for sure but a fundamental change to the ideology around the ant behavior. The black ants do not have any memory at all and instead react purely based on the current conditions they perceive. My goal is to make them behave close to real ants so arbitrary fixes to address issues kind of goes against that. I'd rather try to find fundamental ways to make the simulation more accurate that causes downstream problems like the doubling back issue to get resolved. 


There's a different potential solution I wanted to try to get working of letting the pheromones diffuse to nearby cells constantly. That way, more stable gradients back to the surface or towards the digging area would be formed and be more resilient against occasional double backs. While I did implement this pheromone diffusion, I disabled it as my implementation was causing constant lag spikes. I might come back and look to optimize it with something like a computer shader but I'll need to adjust several other parameters in the system to account for that. But I have no immediate plans to do so since I'm working on a bunch of other stuff for the time being.


I'm glad you enjoy my ant behavior simulation a bunch though! Sorry for rambling a bit. I like how it turned out too and keep thinking of ways I could do it better if I attempted to improve it. 

(2 edits)

I'll share more in depth info publically in a week or two on how the behavior works. I don't use ECS actually but would be a good optimization if I wanted to push it even further. The entire world is a grid of nodes in memory that is just its type (dirt or empty) and some other bits of info. This data is rendered to a texture rather than each being a separate entity. When a node changes type, it changes the corresponding pixel on the texture. Basically the ants are modifying pixels on a canvas. An ant is always located at the center of a node and makes decisions moving one node at a time or deciding whether to dig a dirt next to herself. There's more info I can share if you'd like to DM me on Discord (justicefied) or something. Excited to see the results of your thesis as well! The world needs more cool ant simulators.

dang. I specifially, enabled that. Must be the browser optimizing out of focus tabs. Thanks for pointing it out

(1 edit)

They do look near identical but are slightly different. The top of the lowercase L is flat while the number 1 is slanted.

It's a lowercase L not the number 1 in both cases