From 2948caf61f5803a6324d63ab215ef96d25506f2a Mon Sep 17 00:00:00 2001 From: Peter Ward Date: Tue, 29 Sep 2009 22:01:52 +1000 Subject: Added Pyglet version. --- common.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'common.py') diff --git a/common.py b/common.py index 50b8eb0..398f810 100644 --- a/common.py +++ b/common.py @@ -11,16 +11,3 @@ class Squares(object): EMPTY = '.' APPLE = '*' -class Sprites(object): - PREFIX = 'images' - def __getattribute__(self, name): - try: - return object.__getattribute__(self, name.upper()) - except AttributeError: - from pygame.image import load - filename = os.path.join(self.PREFIX, name.lower() + ".png") - image = load(filename).convert_alpha() - setattr(self, name, image) - return image -Sprites = Sprites() - -- cgit v1.2.3