<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -127,6 +127,16 @@ class Ball &lt; GameObject
     @base_speed = 30
   end
 
+
+  def start( direction )
+    self.velocity =
+      case direction
+      when &quot;left&quot;
+        v(1,1).magnitude(-@base_speed)
+      when &quot;right&quot;
+        v(1,1).magnitude( @base_speed)
+      end
+  end
 end
 
 </diff>
      <filename>games/paddle_ball.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1729206d6ddeb5abdf33bc371720b54401eb2a06</id>
    </parent>
  </parents>
  <author>
    <name>John Croisant</name>
    <email>jacius@gmail.com</email>
  </author>
  <url>http://github.com/jacius/rebirth/commit/3fcb8d9bc44bf26193bbd78367c79bbd195f1a9f</url>
  <id>3fcb8d9bc44bf26193bbd78367c79bbd195f1a9f</id>
  <committed-date>2008-06-02T22:40:52-07:00</committed-date>
  <authored-date>2008-06-02T22:40:52-07:00</authored-date>
  <message>Added Ball#start to start the ball moving either down-left or up-right.</message>
  <tree>9756645ca0554fd47de752d846ac41d9d346d118</tree>
  <committer>
    <name>John Croisant</name>
    <email>jacius@gmail.com</email>
  </committer>
</commit>
