renamed file, and added level management
This commit is contained in:
parent
1dd1205cb4
commit
7821265f6f
1 changed files with 8 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
import os, pygame, glob, logging
|
import os, pygame, glob, logging
|
||||||
|
from collections import namedtuple
|
||||||
|
|
||||||
|
|
||||||
class Textures():
|
class Textures():
|
||||||
|
@ -26,3 +27,10 @@ class Textures():
|
||||||
def getTexture(self, objectName):
|
def getTexture(self, objectName):
|
||||||
filename = self.path + self.pack + "\\{0}.png".format(self.images[objectName.upper()])
|
filename = self.path + self.pack + "\\{0}.png".format(self.images[objectName.upper()])
|
||||||
return pygame.image.load(filename)
|
return pygame.image.load(filename)
|
||||||
|
|
||||||
|
|
||||||
|
Level_Template = namedtuple('Level_Template', (rows, padding, firebacks))
|
||||||
|
Levels = [
|
||||||
|
Level_Template(2, 30, 0),
|
||||||
|
Level_Template(3, 15, 0)
|
||||||
|
]
|
Reference in a new issue