Game of MetaLife 0.33

Address:


Name xFreq yFreq zFreq color split mutate
Lifeform 1
Lifeform 2
The first three parameters determine the frequency of movement in the x,y,z coordinate space. The last two determine the frequency that it reproduces and the strength of mutation each time it splits.
All of the code in the right panel can be changed for more specialised effects.

Joel Dietz MIT | ART | Ted Talk | MMV
Documentation @ Gitbook
if (ca.xFreq > 100) { if ((numberofComputationalStepsCompleted % 100) < (ca.xFreq % 100)) current_x += 1; } else if (ca.xFreq <= 100) if ((numberofComputationalStepsCompleted % 100) < (ca.xFreq)) current_x -= 1; if (ca.yFreq > 100) { if ((numberofComputationalStepsCompleted % 100) < (ca.yFreq % 100)) current_y += 1; } else if (ca.yFreq <= 100) if ((numberofComputationalStepsCompleted % 100) < (ca.yFreq)) current_y -= 1; if (ca.zFreq > 100) { if ((numberofComputationalStepsCompleted % 100) < (ca.zFreq % 100)) current_z += 1; } else if (ca.zFreq <= 100) if ((numberofComputationalStepsCompleted % 100) < (ca.zFreq)) current_z -= 1; if (numberofComputationalStepsCompleted != 0 && numberofComputationalStepsCompleted % ca.splitFreq == 0) { if (allActiveCAs.length < 12) { var splitCA = mutate(ca, ca.mutation); allActiveCAs.push(splitCA); } }
>> 
Download Code