Small Brain. Big Trades.
README.md
FoodPatch
A disc of food on the ground, drawn as a flat cylinder tinted by what it
holds. A FruitFly whose front foot or extended proboscis is inside the disc
has its taste neurons driven at the fly's tasteHz times the patch's
sugar. Fields: radius, sugar, bitter, height. Method:
contains(x, y, z).
local food = entity.spawn("Food")
food.position = { 3, 0, 0 }
food.component.add("FoodPatch", { radius = 0.6, sugar = 1 })