Mercurial > pyntnclick
changeset 395:44459476aec6
Cryo empty and full images.
author | Simon Cross <hodgestar+bzr@gmail.com> |
---|---|
date | Sat, 28 Aug 2010 20:31:26 +0200 |
parents | 5cfd68beb6d3 |
children | ba939334d1db |
files | Resources/images/engine/cryo_empty.png Resources/images/engine/cryo_full.png Resources/images/engine/engine_room.png gamelib/scenes/engine.py sources/art/engine_room.xcf |
diffstat | 5 files changed, 6 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/scenes/engine.py Sat Aug 28 20:11:34 2010 +0200 +++ b/gamelib/scenes/engine.py Sat Aug 28 20:31:26 2010 +0200 @@ -211,18 +211,11 @@ NAME = 'engine.cryo_containers' INTERACTS = { - 'containers': InteractRectUnion(( - (140, 378, 40, 25), - (129, 278, 55, 100), - (130, 365, 17, 25), - (168, 288, 31, 104), - (192, 288, 27, 95), - (216, 291, 16, 87), - (226, 291, 38, 79), - )) - } + 'empty': InteractImage(118, 211, 'cryo_empty.png'), + 'full': InteractImage(118, 211, 'cryo_full.png'), + } - INITIAL = 'containers' + INITIAL = 'empty' INITIAL_DATA = { 'filled': False, @@ -258,10 +251,11 @@ "It almost gets stuck") def interact_with_full_detergent_bottle(self, item): - # TODO: Show full tank interact self.state.remove_inventory_item(item.name) self.state.current_scene.things['engine.cryo_containers'] \ .set_data('filled', True) + self.state.current_scene.things['engine.cryo_containers'] \ + .set_interact('full') return Result("You fill the reservoirs. " "It seems the detergent bottle was just big enough.")