Mercurial > boomslang
comparison gamelib/scenes/won.py @ 402:2090b2bc13e4
Add skeleton won screen
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 28 Aug 2010 21:29:49 +0200 |
parents | |
children | 860cb6144fd4 |
comparison
equal
deleted
inserted
replaced
401:92029c76b687 | 402:2090b2bc13e4 |
---|---|
1 """You WON screen""" | |
2 | |
3 from gamelib.state import Scene, Item, Thing, Result | |
4 from gamelib.scenes.game_constants import PLAYER_ID | |
5 from gamelib.scenes.scene_widgets import (Door, InteractText, InteractNoImage, | |
6 InteractRectUnion, InteractImage, | |
7 InteractAnimated, GenericDescThing, | |
8 make_jim_dialog) | |
9 | |
10 | |
11 class Won(Scene): | |
12 | |
13 FOLDER = "won" | |
14 BACKGROUND = "won.png" | |
15 | |
16 INITIAL_DATA = { | |
17 'accessible': False, | |
18 } | |
19 | |
20 def __init__(self, state): | |
21 super(Won, self).__init__(state) | |
22 | |
23 def enter(self): | |
24 return Result("Congratulations, Prisoner %s. You head off to your chosen " | |
25 "destination, safe in the knowledge that nothing can stop you. " | |
26 "Now you just need to do something during the intervening months" % PLAYER_ID) | |
27 | |
28 SCENES = [Won] |