Ignore:
Timestamp:
09/05/13 22:32:38 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
33353963346133346637373761343861303730623836356536396634356233663861326238343337
Message:

Rename animate to update and pass seconds, for future fun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r305 r307  
    146146        return self.renderer.render(surface)
    147147
    148     def animate(self):
    149         self.renderer.animate()
     148    def update(self, seconds):
     149        self.renderer.update(seconds)
    150150
    151151    def hit(self, weapon):
     
    358358        self.physicser.apply_impulse(impulse)
    359359
    360     def animate(self):
    361         super(Bullet, self).animate()
     360    def update(self, seconds):
     361        super(Bullet, self).update(seconds)
    362362        position = (self.physicser.position.x, self.physicser.position.y)
    363363        r = self.get_space().segment_query(self.last_position, position)
Note: See TracChangeset for help on using the changeset viewer.