Mercurial > touhou
changeset 314:0f88ae611d37
Fix Sakuya's daggers in stage 6.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Wed, 14 Mar 2012 19:27:39 +0100 |
parents | 2ba2462afc70 |
children | e935ed8dc5e6 |
files | pytouhou/game/bullet.pyx |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pytouhou/game/bullet.pyx +++ b/pytouhou/game/bullet.pyx @@ -211,7 +211,7 @@ cdef class Bullet(object): count = count - 1 if self.frame != 0: - self.speed = speed + self.speed = self.speed if speed < -900 else speed if self.flags & 64: self.angle += angle @@ -239,9 +239,9 @@ cdef class Bullet(object): if self.speed_interpolator: self.speed_interpolator.update(self.frame) - self.speed, = self.speed_interpolator.values - self.dx = cos(self.angle) * self.speed - self.dy = sin(self.angle) * self.speed + speed, = self.speed_interpolator.values + self.dx = cos(self.angle) * speed + self.dy = sin(self.angle) * speed self.x += self.dx self.y += self.dy