added logging
This commit is contained in:
parent
0cd61dcb48
commit
74a440e2be
2 changed files with 6 additions and 2 deletions
|
@ -1,2 +1,4 @@
|
||||||
import pygame
|
import pygame, logging
|
||||||
import bullet, player, textures # Import other files
|
import bullet, player, textures # Import other files
|
||||||
|
|
||||||
|
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.DEBUG)
|
|
@ -1,4 +1,7 @@
|
||||||
import os, pygame, glob
|
import os, pygame, glob
|
||||||
|
import os, pygame, glob, logging
|
||||||
|
|
||||||
|
|
||||||
class Textures():
|
class Textures():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.images = {
|
self.images = {
|
||||||
|
@ -12,7 +15,6 @@ class Textures():
|
||||||
def loadTexturePack(self, packName):
|
def loadTexturePack(self, packName):
|
||||||
if os.path.exists(self.path + packName):
|
if os.path.exists(self.path + packName):
|
||||||
targets = glob.glob(self.path+packName+"\\target*.png")
|
targets = glob.glob(self.path+packName+"\\target*.png")
|
||||||
for file in files:
|
|
||||||
fileName = file.split("\\")[-1]
|
fileName = file.split("\\")[-1]
|
||||||
if
|
if
|
||||||
self.pack = packName
|
self.pack = packName
|
||||||
|
|
Reference in a new issue