comparison pytouhou/game/enemy.py @ 253:ea4832f843aa

Fix initial bullet speed
author Thibaut Girka <thib@sitedethib.com>
date Sun, 22 Jan 2012 17:42:44 +0100
parents 4b549894ef6b
children dd621ad72beb
comparison
equal deleted inserted replaced
252:b5c7369abd7c 253:ea4832f843aa
120 120
121 if not launch_pos: 121 if not launch_pos:
122 ox, oy = offset or self.bullet_launch_offset 122 ox, oy = offset or self.bullet_launch_offset
123 launch_pos = self.x + ox, self.y + oy 123 launch_pos = self.x + ox, self.y + oy
124 124
125 if speed < 0.3:
126 speed = 0.3
125 if speed2 < 0.3: 127 if speed2 < 0.3:
126 speed2 = 0.3 128 speed2 = 0.3
127 129
128 self.bullet_launch_timer = 0 130 self.bullet_launch_timer = 0
129 131