From 8d22b88428a89b79bce61be428e42a5c97e6eef0 Mon Sep 17 00:00:00 2001 From: gauthiier Date: Thu, 5 Mar 2015 15:16:38 +0100 Subject: [PATCH] fixed --- .../creature_creature_behavior_example.pde | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/micro/creature_creature_behavior_example/creature_creature_behavior_example.pde b/micro/creature_creature_behavior_example/creature_creature_behavior_example.pde index 3387f2c..2330686 100644 --- a/micro/creature_creature_behavior_example/creature_creature_behavior_example.pde +++ b/micro/creature_creature_behavior_example/creature_creature_behavior_example.pde @@ -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); colony.add(c); - -} - -void keyPressed() { - + // Inform the colony of the KEY pressed colony.event(key);