Changeset 297:b00ed05f7364 for nagslang


Ignore:
Timestamp:
Sep 5, 2013, 9:43:50 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
rebase_source:
088a08f85e3c66d38b3b3f31ba76f14152825539
Message:

Create a tuple of bullet position, so we don't just hold a reference to a mutable object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r296 r297  
    354354    def animate(self):
    355355        super(Bullet, self).animate()
    356         position = self.physicser.position
     356        position = (self.physicser.position.x, self.physicser.position.y)
    357357        r = self.get_space().segment_query(self.last_position, position)
    358358        self.last_position = position
Note: See TracChangeset for help on using the changeset viewer.