String LOAD_FILE="creatureEx.gen"; int timeSteps=0; position genomeAnchor=new position(25,50); position scrollPos=new position(genomeAnchor.x,genomeAnchor.y-15); scrollBar genomeScroll=new scrollBar(scrollPos,400); PFont uiFont; boolean displayUI=false; boolean displayNeuronUI=false; boolean displayGenomeUI=true; boolean useSmooth=false; int displayMode=2; position vpos; position vposT; float zoomAmount=0; float zoomTarget=0; boolean dragCreature=false; boolean stimulateNeuron=false; boolean useGravity=false; boolean useMirror=true; float LIGHT_VALUE=1; cell selected=null; int selectedID=0; float FRICTION_FORCE=0.95; float FLUID_FORCE=.2; vector GRAVITY_VECTOR=new vector(270,.1); position lightSource; position spawnPos; creature currentCreature; //EVOLUTION VARS boolean simulationMode=true; boolean recording=false; lightHolder curs=new lightHolder(200); void setup() { useRK=true; size(500,500); uiFont=loadFont("KnockoutHTF30JuniorWelterwt-48.vlw"); textFont(uiFont); textMode(CORNER); ellipseMode(CENTER); rectMode(CORNER); if(useSmooth) smooth(); vpos=new position(0,0); vposT=new position(0,0); spawnPos=new position(width/2,height/2); currentCreature=new creature(spawnPos); currentCreature.importGen("creatureEx.gen"); bestCreature=currentCreature; initTextBuffer(); //generate a list of random creatures if(!simulationMode) { for(int i=0;i