This commit is contained in:
gauthiier 2015-03-05 15:16:38 +01:00
parent cb9ac6e110
commit 8d22b88428

View File

@ -46,18 +46,14 @@ void draw() {
} }
void mousePressed() { void keyPressed() {
Creature c = new TriangleCreature(mouseX, mouseY, 10); Creature c = new TriangleCreature(random(width), random(height), 10);
creatures.add(c); creatures.add(c);
colony.add(c); colony.add(c);
}
void keyPressed() {
// Inform the colony of the KEY pressed // Inform the colony of the KEY pressed
colony.event(key); colony.event(key);