1
Fork 0

added logging

This commit is contained in:
Jake Howard 2015-04-18 16:32:14 +01:00
parent 0cd61dcb48
commit 74a440e2be
2 changed files with 6 additions and 2 deletions

View File

@ -1,2 +1,4 @@
import pygame
import pygame, logging
import bullet, player, textures # Import other files
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.DEBUG)

View File

@ -1,4 +1,7 @@
import os, pygame, glob
import os, pygame, glob, logging
class Textures():
def __init__(self):
self.images = {
@ -12,7 +15,6 @@ class Textures():
def loadTexturePack(self, packName):
if os.path.exists(self.path + packName):
targets = glob.glob(self.path+packName+"\\target*.png")
for file in files:
fileName = file.split("\\")[-1]
if
self.pack = packName