Changeset 522:4de4f94c326d


Ignore:
Timestamp:
04/09/11 21:45:00 (12 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Move skaapsteker behind stuff and make haiku scrolls display text on collection.

Location:
skaapsteker
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/constants.py

    r433 r522  
    2121# Layer defination
    2222class Layers(object):
     23    SKAAPSTEKER = -1 # Special layer for snakes
    2324    BACKGROUND = 0  # Absolute background
    2425    BEHIND = 1  # Layer behind the player
  • skaapsteker/level.py

    r513 r522  
    3535            's': self.tile_factory('standing-lantern.png', layer=Layers.IN_FRONT, dirname='common'),
    3636            '!': self.tile_factory('dangly-bits.png', layer=Layers.IN_FRONT, dirname='common'),
    37             'k': self.tile_factory('skaapsteker.png', layer=Layers.BACKGROUND, dirname='skaapsteker'),
     37            'k': self.tile_factory('skaapsteker.png', layer=Layers.SKAAPSTEKER, dirname='skaapsteker'),
    3838            }
    3939
  • skaapsteker/sprites/items.py

    r518 r522  
    5151    def player_action(self, player):
    5252        player.collect_scroll(self)
     53        notify("The scroll looks like a fragment of a haiku: '%s'" % self.text)
    5354        self.remove()
    5455
Note: See TracChangeset for help on using the changeset viewer.