Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Enemy AI: chasing a player without Navigation2D or A* pathfinding. Parent comment
Insects and other animals are also good for inspiration. Even microbes!
There are some microbes that essentially follow this small program to find sugars:
- swim forward - wiggle around randomly - repeat
When the concentration of sugars is increasing, spend more time swimming forward. Otherwise, spend less time swimming between wiggles.
In a game, you would have the player leave a scent trail, and some of the other critters could behave like above.
There are no comments on this comment yet.
Insects and other animals are also good for inspiration. Even microbes!
There are some microbes that essentially follow this small program to find sugars:
- swim forward - wiggle around randomly - repeat
When the concentration of sugars is increasing, spend more time swimming forward. Otherwise, spend less time swimming between wiggles.
In a game, you would have the player leave a scent trail, and some of the other critters could behave like above.