changeset 364:14142aee4c03

Bring fireball closer to sprite initially.
author Simon Cross <hodgestar@gmail.com>
date Sat, 09 Apr 2011 14:30:36 +0200
parents 5e4e1432565a
children a43f571e8f5b
files skaapsteker/sprites/projectiles.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/skaapsteker/sprites/projectiles.py	Sat Apr 09 14:28:12 2011 +0200
+++ b/skaapsteker/sprites/projectiles.py	Sat Apr 09 14:30:36 2011 +0200
@@ -19,17 +19,17 @@
             ('right', lambda x: transform.flip(x, True, False))),
     }
 
-    FIREBALL_WIDTH = 60 # pixels
+    FIREBALL_WIDTH = 55 # pixels
     VELOCITY = (300, -1000) # pps
 
     def setup(self, direction, **opts):
         super(Fireball, self).setup(**opts)
         self.facing = direction
         if self.facing == "left":
-            shift = (-self.FIREBALL_WIDTH / 2, 0)
+            shift = (-self.FIREBALL_WIDTH / 2, 4)
             dv = (-self.VELOCITY[0], self.VELOCITY[1])
         else:
-            shift = (self.FIREBALL_WIDTH / 2, 0)
+            shift = (self.FIREBALL_WIDTH / 2, 4)
             dv = (self.VELOCITY[0], self.VELOCITY[1])
         self.rect.move_ip(shift)
         self.collide_rect.move_ip(shift)