Mercurial > pyntnclick
diff gamelib/state.py @ 132:686bb74a52f8
Map shows accessible areas.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Tue, 24 Aug 2010 19:22:01 +0200 |
parents | 11afefc4aeaf |
children | 0530547a131f |
line wrap: on
line diff
--- a/gamelib/state.py Tue Aug 24 18:52:52 2010 +0200 +++ b/gamelib/state.py Tue Aug 24 19:22:01 2010 +0200 @@ -38,9 +38,9 @@ state = State(screen) state.load_scenes("cryo") state.load_scenes("bridge") - #state.load_scenes("mess") - #state.load_scenes("engine") - #state.load_scenes("machine") + state.load_scenes("mess") + # state.load_scenes("engine") + # state.load_scenes("machine") state.load_scenes("map") state.set_current_scene("cryo") state.set_do_enter_leave() @@ -349,12 +349,14 @@ class InteractText(Interact): """Display box with text to interact with -- mostly for debugging.""" - def __init__(self, x, y, text): + def __init__(self, x, y, text, bg_color=None): + if bg_color is None: + bg_color = (127, 127, 127) label = BoomLabel(text) label.set_margin(5) label.border_width = 1 label.border_color = (0, 0, 0) - label.bg_color = (127, 127, 127) + label.bg_color = bg_color label.fg_color = (0, 0, 0) image = Surface(label.size) rect = Rect((x, y), label.size)