Mercurial > pyntnclick
comparison gamelib/scenes/machine.py @ 262:5f58da9eeb52
Replace text interacts with doors.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Fri, 27 Aug 2010 19:22:47 +0200 |
parents | 020f83305bf3 |
children | 3b4a78422201 |
comparison
equal
deleted
inserted
replaced
261:5bb9e40c98e4 | 262:5f58da9eeb52 |
---|---|
1 """Machine room where tools and machines are found.""" | 1 """Machine room where tools and machines are found.""" |
2 | 2 |
3 from gamelib.state import Scene, Item, Thing, InteractText, Result | 3 from gamelib.state import Scene, Item, Thing, InteractNoImage, InteractText, Result |
4 from gamelib.cursor import CursorSprite | 4 from gamelib.cursor import CursorSprite |
5 from gamelib.scenes.scene_widgets import Door | 5 from gamelib.scenes.scene_widgets import Door |
6 | 6 |
7 | 7 |
8 class Machine(Scene): | 8 class Machine(Scene): |
29 class ToMap(Door): | 29 class ToMap(Door): |
30 | 30 |
31 SCENE = "machine" | 31 SCENE = "machine" |
32 | 32 |
33 INTERACTS = { | 33 INTERACTS = { |
34 "door": InteractText(100, 200, "To Map"), | 34 "door": InteractNoImage(695, 350, 97, 212), |
35 } | 35 } |
36 | 36 |
37 INITIAL = "door" | 37 INITIAL = "door" |
38 | 38 |
39 | 39 |