Commits

Daniel Pope  committed bcf7c60

New: improved installation instructions
Fix: workaround for a compatibility problem with older pymunk
Fix: stop sound when entering the editor

  • Participants
  • Parent commits e99766f

Comments (0)

Files changed (4)

 Installing
 ----------
 
-Doctor Korovic's Flying Atomic Squid is packaged with distribute. It can be
-installed with setup.py::
+Doctor Korovic's Flying Atomic Squid is packaged with distribute. You will need
+either distribute or setuptools to be able to install this (distribute is
+preferred).
+
+It can be installed with setup.py::
 
     $ python setup.py install
 
 
     $ pip install korovic
 
-Both of these approaches work with virtualenvs, and will install all the
-dependencies.
+Both of these approaches work with virtualenvs, and will install dependencies.
+Note that this depends on the dependencies being available to pip/easy_install.
+In particular pygame seems not to be currently pip installable on Linux as it
+selects a Mac build by default. The other packages are automatically
+installable.
+
+Dependencies needed
+-------------------
+
+If you choose not to use pip, you will need to install the following
+dependencies:
+
+* pyglet>=1.1.4
+* pymunk==2.1.0
+* pygame>=1.9.1release
+* lepton==1.0b2
 
 Editing
 -------

File korovic/components/squid.py

         else:
             return False
 
+    def stop_all(self):
+        for c in self.slots.components:
+            try:
+                c.on_stop()
+            except AttributeError:
+                pass
+
     def has_fuel(self):
         return self.fuel > 0
 

File korovic/scene.py

 
     def start(self):
         self.world.reset()
+        self.world.squid.stop_all()
         self.update_controllers()
 
     def stop(self):

File korovic/world.py

         self.space.add(self.squid.bodies_and_shapes())
 
     def create_wall(self, x=-500, width=500):
-        body = self.space.static_body
+        body = pymunk.Body()
         seg = pymunk.Segment(body, (x, 0), (x, 100000), width)
         seg.friction = 0
         self.space.add_static(seg)
 
     def create_island(self, x1, x2, y=20):
-        body = self.space.static_body
+        body = pymunk.Body()
         margin = 50  #  A little leeway to stop susie clipping badly into the sea
         p1 = (x1 - 200 - margin, y - 100)
         p2 = (x1 - margin, y)
             self.distance = p.x * 0.1
             self.crashed = True
             self.remove_squid()
+            self.squid.stop_all()
             self.splash.play()
             vx, vy = self.squid.body.velocity * 0.7
             vy = max(20, vy * -1)