Default Parameters

Unicellular edited this page Jan 20, 2014 · 5 revisions
Clone this wiki locally
   var _params = {
        tickDuration:20,

        //World
        width: window.innerWidth,
        height: window.innerHeight,
        cellSize:64,

        //Vegetation distribution
        maxFood:0.5,
        foodAddFrequency:30,

        minAgents:25,
        maxAgents:50,


        agent:{
            radius:10,
            speed:0.3,
            sprintMultiplier:2,

            //Vision
            numberEyes:4,
            viewDistance:150,

            //Weapon
            spikeStrength:1,
            spikeSpeed: 0.005,

            //Eating + sharing food
            foodIntake:0.002,
            foodWasted:0.001,
            foodTraded:0.001,
            foodTradeDistance:50,

            //Reproduction
            babies:2,
            reproductionRate:{
                carnivore:7,
                herbivore:7
            },
            mutationRate:[
                0.002,
                0.05
            ],

            //Pain
            temperatureDiscomfortDamage:0,

            //Death
            bodyDecayRadius:64,
            bodyFertilityBonus:5
        },

        brain:{
            inputSize:25,
            outputSize:9,
            connections:4,
            size:200
        }
    };