Mercurial > boomslang
comparison gamelib/scenes/cryo.py @ 105:65976205fc2d
Rough Stab at basic animation support
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Tue, 24 Aug 2010 11:57:06 +0200 |
parents | 0f799b6f40bc |
children | 66898d810247 |
comparison
equal
deleted
inserted
replaced
104:ae76009a00b5 | 105:65976205fc2d |
---|---|
1 """Cryo room where the prisoner starts out.""" | 1 """Cryo room where the prisoner starts out.""" |
2 | 2 |
3 import random | 3 import random |
4 | 4 |
5 from gamelib.state import Scene, Item, Thing, Result, \ | 5 from gamelib.state import Scene, Item, Thing, Result, \ |
6 InteractImage, InteractNoImage, InteractRectUnion | 6 InteractImage, InteractNoImage, InteractRectUnion, \ |
7 InteractAnimated | |
7 | 8 |
8 | 9 |
9 class Cryo(Scene): | 10 class Cryo(Scene): |
10 | 11 |
11 FOLDER = "cryo" | 12 FOLDER = "cryo" |
127 "Computer in the cryo room." | 128 "Computer in the cryo room." |
128 | 129 |
129 NAME = "cryo.computer" | 130 NAME = "cryo.computer" |
130 | 131 |
131 INTERACTS = { | 132 INTERACTS = { |
132 "info": InteractImage(416, 290, "comp_info.png"), | 133 "info": InteractAnimated(416, 290, ["comp_info.png", "comp_warn.png"], |
134 10), | |
133 "warn": InteractImage(416, 290, "comp_warn.png"), | 135 "warn": InteractImage(416, 290, "comp_warn.png"), |
134 "error": InteractImage(416, 290, "comp_error.png"), | 136 "error": InteractImage(416, 290, "comp_error.png"), |
135 } | 137 } |
136 | 138 |
137 INITIAL = "info" | 139 INITIAL = "info" |