diff pyntnclick/gamescreen.py @ 576:1b1ab71535bd pyntnclick

Classify constants, which involves a whole bunch of XXX comments
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 11 Feb 2012 16:02:06 +0200
parents ebb2efcb4ea7
children 7e4a20eb78b8
line wrap: on
line diff
--- a/pyntnclick/gamescreen.py	Sat Feb 11 16:01:33 2012 +0200
+++ b/pyntnclick/gamescreen.py	Sat Feb 11 16:02:06 2012 +0200
@@ -9,12 +9,19 @@
 from pygame import Rect, mouse
 from pygame.color import Color
 
-from pyntnclick.constants import SCREEN, BUTTON_SIZE, SCENE_SIZE, LEAVE
 from pyntnclick.cursor import CursorWidget
 from pyntnclick.state import handle_result
 from pyntnclick.widgets import (
     MessageDialog, BoomButton, HandButton, PopupMenu, PopupMenuButton)
 
+# XXX: Need a way to get at the constants.
+from pyntnclick.constants import GameConstants
+constants = GameConstants()
+SCREEN = constants.screen
+BUTTON_SIZE = constants.button_size
+SCENE_SIZE = constants.scene_size
+LEAVE = constants.leave
+
 
 class InventoryView(PaletteView):