changeset 253:ea4832f843aa

Fix initial bullet speed
author Thibaut Girka <thib@sitedethib.com>
date Sun, 22 Jan 2012 17:42:44 +0100
parents b5c7369abd7c
children 6bd565019f9a
files pytouhou/game/enemy.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -122,6 +122,8 @@ class Enemy(object):
             ox, oy = offset or self.bullet_launch_offset
             launch_pos = self.x + ox, self.y + oy
 
+        if speed < 0.3:
+            speed = 0.3
         if speed2 < 0.3:
             speed2 = 0.3