From 7821265f6f6b00823dd9a365cbe5b690ad85a7ab Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 7 May 2015 19:38:27 +0100 Subject: [PATCH] renamed file, and added level management --- textures.py => assets.py | 8 ++++++++ 1 file changed, 8 insertions(+) rename textures.py => assets.py (82%) diff --git a/textures.py b/assets.py similarity index 82% rename from textures.py rename to assets.py index ba7638e..5fb2f6c 100644 --- a/textures.py +++ b/assets.py @@ -1,4 +1,5 @@ import os, pygame, glob, logging +from collections import namedtuple class Textures(): @@ -26,3 +27,10 @@ class Textures(): def getTexture(self, objectName): filename = self.path + self.pack + "\\{0}.png".format(self.images[objectName.upper()]) return pygame.image.load(filename) + + +Level_Template = namedtuple('Level_Template', (rows, padding, firebacks)) +Levels = [ + Level_Template(2, 30, 0), + Level_Template(3, 15, 0) +] \ No newline at end of file