made all the balls start moving
authorPatrik Gornicz <Gornicz.P@gmail.com>
Sat, 2 Aug 2008 01:12:29 +0000 (21:12 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Sat, 2 Aug 2008 01:12:29 +0000 (21:12 -0400)
src/entityCreator.cpp

index 8ed35f4..078e40f 100644 (file)
@@ -19,47 +19,55 @@ void creator::init()
 
     ball = new Ball(Vector2(50, 50), 20, cWhite);
 
-    ball->applyImpulse(Vector2(0.01,0.01)),
+    ball->applyImpulse(Vector2(0.25,0.05)),
     Balls.push(ball);
     manager::add(ball);
 
     ball = new Ball(Vector2(100, 50), 20, cBlack);
 
+    ball->applyImpulse(Vector2(-0.15,-0.05)),
     Balls.push(ball);
     manager::add(ball);
 
     ball = new Ball(Vector2(150, 50), 20, cGrey);
 
+    ball->applyImpulse(Vector2(0.25,0.15)),
     Balls.push(ball);
     manager::add(ball);
 
     ball = new Ball(Vector2(50, 100), 20, cRed);
 
+    ball->applyImpulse(Vector2(0.35,-0.15)),
     Balls.push(ball);
     manager::add(ball);
 
     ball = new Ball(Vector2(100, 100), 20, cGreen);
 
+    ball->applyImpulse(Vector2(-0.15,0.05)),
     Balls.push(ball);
     manager::add(ball);
 
     ball = new Ball(Vector2(150, 100), 20, cBlue);
 
+    ball->applyImpulse(Vector2(0.25,0.15)),
     Balls.push(ball);
     manager::add(ball);
 
     ball = new Ball(Vector2(50, 150), 20, cYellow);
 
+    ball->applyImpulse(Vector2(0.25,-0.05)),
     Balls.push(ball);
     manager::add(ball);
 
     ball = new Ball(Vector2(100, 150), 20, cMagenta);
 
+    ball->applyImpulse(Vector2(-0.15,-0.05)),
     Balls.push(ball);
     manager::add(ball);
 
     ball = new Ball(Vector2(150, 150), 20, cCyan);
 
+    ball->applyImpulse(Vector2(-0.15,0.05)),
     Balls.push(ball);
     manager::add(ball);
 }