X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=blobdiff_plain;f=bulletml%2Fimpl.py;h=4dde9fb4b608115ad2dec45a6426a89255282faf;hp=6fe1641c2134fe1f231c09bba9654e8711027dae;hb=006fb3dcabc9600997f5c3c8fcc5e80baa7fc1e0;hpb=28775523f6cd56422d3fbd0ae96eebccbe7235c4 diff --git a/bulletml/impl.py b/bulletml/impl.py index 6fe1641..4dde9fb 100644 --- a/bulletml/impl.py +++ b/bulletml/impl.py @@ -287,6 +287,8 @@ class Bullet(object): created.extend(action.step()) direction = math.radians(self.direction) + self.px = self.x + self.py = self.y self.x += self.mx + math.sin(direction) * self.speed self.y += self.my - math.cos(direction) * self.speed