This commit is contained in:
gauthiier 2015-03-06 10:13:47 +01:00
parent 8d22b88428
commit f6d7c71fea

View File

@ -36,19 +36,20 @@ void draw() {
background(23, 68, 250);
stroke(255);
noFill();
for(int i = 0; i < creatures.size(); i++) {
Creature c = creatures.get(i);
c.display();
}
collision.removeCollisionResolver();
}
void keyPressed() {
Creature c = new TriangleCreature(random(width), random(height), 10);
Creature c = new TriangleCreature((int)random(width), (int)random(height), 10);
creatures.add(c);