Mercurial > skaapsteker
comparison skaapsteker/sprites/items.py @ 522:4de4f94c326d
Move skaapsteker behind stuff and make haiku scrolls display text on collection.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 23:45:00 +0200 |
parents | be1333278d5b |
children | 8087e95ade2f |
comparison
equal
deleted
inserted
replaced
521:5a8a7f17597d | 522:4de4f94c326d |
---|---|
48 class HaikuScroll(Item): | 48 class HaikuScroll(Item): |
49 image_file = 'props/haiku-scroll.png' | 49 image_file = 'props/haiku-scroll.png' |
50 | 50 |
51 def player_action(self, player): | 51 def player_action(self, player): |
52 player.collect_scroll(self) | 52 player.collect_scroll(self) |
53 notify("The scroll looks like a fragment of a haiku: '%s'" % self.text) | |
53 self.remove() | 54 self.remove() |
54 | 55 |
55 | 56 |
56 def setup(self, text, **opts): | 57 def setup(self, text, **opts): |
57 super(HaikuScroll, self).setup(**opts) | 58 super(HaikuScroll, self).setup(**opts) |