Mercurial > pyntnclick
diff 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 |
line wrap: on
line diff
--- a/gamelib/scenes/cryo.py Tue Aug 24 11:55:35 2010 +0200 +++ b/gamelib/scenes/cryo.py Tue Aug 24 11:57:06 2010 +0200 @@ -3,7 +3,8 @@ import random from gamelib.state import Scene, Item, Thing, Result, \ - InteractImage, InteractNoImage, InteractRectUnion + InteractImage, InteractNoImage, InteractRectUnion, \ + InteractAnimated class Cryo(Scene): @@ -129,7 +130,8 @@ NAME = "cryo.computer" INTERACTS = { - "info": InteractImage(416, 290, "comp_info.png"), + "info": InteractAnimated(416, 290, ["comp_info.png", "comp_warn.png"], + 10), "warn": InteractImage(416, 290, "comp_warn.png"), "error": InteractImage(416, 290, "comp_error.png"), }