Forage Rest Flee Wander
drag to pan · wheel to zoom
Action mix over time

Utility AI Decision Engine 2D — NPC Behavior Simulator

Game NPCs rarely run a fixed script — most modern games score every candidate action every tick using curve-shaped need functions and simply execute whichever action wins, a decision architecture called Utility AI. This top-down 2D simulator renders a crowd of NPCs on a pannable, zoomable map, each independently scoring Forage, Rest, Flee and Wander against its own rising hunger and fatigue, a nearby patrolling threat, and live proximity to food nodes and a rest zone. Tune the need response curve, threat sensitivity, decision noise and population size and watch the population's behavior mix shift in real time, both on the map and in a scrolling stacked chart of the action mix history.