basic evolution finished
This commit is contained in:
16
src/CellTypes.js
Normal file
16
src/CellTypes.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user