diff pytouhou/game/enemy.py @ 270:7a9135b88853

Partially fix some of Flandre's spellcards.
author Thibaut Girka <thib@sitedethib.com>
date Tue, 24 Jan 2012 00:19:23 +0100
parents dd621ad72beb
children f037bca24f2d
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -36,7 +36,7 @@ class Enemy(object):
 
         self.frame = 0
 
-        self.x, self.y = pos
+        self.x, self.y, self.z = pos
         self.life = 1 if life < 0 else life
         self.max_life = life
         self.touchable = True
@@ -122,7 +122,7 @@ class Enemy(object):
             ox, oy = offset or self.bullet_launch_offset
             launch_pos = self.x + ox, self.y + oy
 
-        if speed < 0.3:
+        if speed < 0.3 and speed != 0.0:
             speed = 0.3
         if speed2 < 0.3:
             speed2 = 0.3