Changeset 297:b00ed05f7364


Ignore:
Timestamp:
09/05/13 21:43:50 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
30383861303866383565336336366433386233623366333162613736663134313532383235353339
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.