1
Fork 0

naming standard

This commit is contained in:
Jake Howard 2015-05-11 22:16:33 +01:00
parent 0d4080e8ae
commit ed548bdcf5

View file

@ -14,7 +14,7 @@ class Textures():
self.path=os.path.dirname(os.path.realpath(__file__)) + "\\resources\\texture_packs\\" self.path=os.path.dirname(os.path.realpath(__file__)) + "\\resources\\texture_packs\\"
self.pack = "default" self.pack = "default"
def loadTexturePack(self, packName): def load_texture_pack(self, packName):
if os.path.exists(self.path + packName): if os.path.exists(self.path + packName):
self.images["TARGETS"] = [] self.images["TARGETS"] = []
@ -26,7 +26,7 @@ class Textures():
self.pack = packName self.pack = packName
def getTexture(self, objectName): def get_texture(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)