Files
lifeEngine/src/CellTypes.js
MaxRobinsonTheGreat 9b24e4cc1c basic evolution finished
2020-07-04 14:01:30 -06:00

17 lines
345 B
JavaScript

const CellTypes = {
empty: 0,
food: 1,
wall: 2,
mouth: 3,
producer: 4,
mover: 5,
killer: 6,
armor: 7,
colors: ['#121D29', 'green', 'black', 'orange', 'white', 'blue', 'red', 'purple'],
getRandomLivingType: function(){
return Math.floor(Math.random() * 5) + 3;
}
}
module.exports = CellTypes;