Ignore:
Timestamp:
09/04/13 13:06:33 (8 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Better rendering and movement detection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r217 r218  
    118118
    119119    zorder = ZORDER_LOW
     120    is_moving = False  # `True` if a movement animation should play.
    120121
    121122    def __init__(self, physicser, renderer, puzzler=None, overlay=None):
     
    150151        self.renderer.animate()
    151152
    152     def is_moving(self):
    153         """Returns `True` if this object is moving.
    154 
    155         This is mostly for movement-based animation renderers to look at.
    156         """
    157         return self.physicser.get_velocity().length > 0
    158 
    159153    def collide_with_protagonist(self):
    160154        """Called as a `pre_solve` collision callback with the protagonist.
Note: See TracChangeset for help on using the changeset viewer.