Log inGet started
World

Small Brain. Big Trades.

Branchmain
Branchesmain
Commit423cc3942e

README.md

FruitFly

An embodied fly driven by a FruitFlyBrain. Every frame it writes the world into the network's sensory neurons and reads a motor command out of named motor and descending cell types:

sensecell typesdriven by
tarsal tasteclaw_tpGRN, dorsal_tpGRNa front foot on a FoodPatch
labellar tasteLB*the extended proboscis on a FoodPatch
loomingLPLC2, LC4a player's avatar growing fast in view
commandcell types
walkleg motor neurons (vnc_motor types ending in MN)
turnDNa01 + DNa02, left minus right
proboscisMN9
flightDLMn + DVMn wing power-muscle motor neurons
jumpa DNp01 burst above escapeHz

Fields: brain, bodyLength, walkSpeed, turnRate, motorFullHz, flightFullHz, tasteHz, loomHz, escapeHz, groundY, wander. Methods: motor(), senses(), readouts(), sensoryNeurons(). Events: onJump, onFeed.

local fly = entity.spawn("Fly")
fly.component.add("FruitFly", { brain = entity.find("Brain"), bodyLength = 0.6, wander = 0.15 })

On a shared world the entity's owner writes the senses into the brain (a synced call); every peer poses its own copy from its own network.