Changeset 331:5030ef2718ae


Ignore:
Timestamp:
Sep 6, 2013, 12:41:55 AM (7 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
rebase_source:
469aa58b3a76d8431ebbb49275e0cf17a80c3393
Message:

Fix claw attack rendering a bit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r319 r331  
    429429        self.time_created = time.time()
    430430
    431     def animate(self):
    432         super(ClawAttack, self).animate()
     431    def update(self, seconds):
     432        super(ClawAttack, self).update(seconds)
    433433        position = (self.physicser.position.x, self.physicser.position.y)
    434434        r = self.get_space().segment_query(self.last_position, position)
     
    437437            shape = collision.shape
    438438            if (shape.collision_type == self.source_collision_type
    439                 or shape == self.physicser.get_shape()
    440                 or shape.sensor):
     439                    or shape == self.physicser.get_shape()
     440                    or shape.sensor):
    441441                continue
    442442            if hasattr(shape, 'physicser'):
Note: See TracChangeset for help on using the changeset viewer.