Changeset 390:52c94435e38b


Ignore:
Timestamp:
Sep 6, 2013, 10:34:00 PM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Goodbye foul locked_door!

Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r385 r390  
    339339                 key_state):
    340340        self._key_state = key_state
     341        overlay = ImageOverlay(resources.get_image('objects', 'lock.png'))
    341342        super(PuzzleDoor, self).__init__(
    342343            space, position, destination, dest_pos, angle,
    343344            render.ImageStateRenderer({
    344345                True: resources.get_image('objects', 'door.png'),
    345                 False: resources.get_image('objects', 'locked_door.png'),
     346                False: resources.get_image(
     347                    'objects', 'door.png', transforms=(overlay,)),
    346348            }),
    347349            environment.FunctionCondition(lambda p: self.is_open),
Note: See TracChangeset for help on using the changeset viewer.