Load all assets in textures folder

master
GreenXenith 2020-02-24 16:57:59 -08:00
parent 268434f04f
commit f5aa089dd8
1 changed files with 2 additions and 6 deletions

View File

@ -19,12 +19,8 @@ pygame.display.set_icon(assets.load("icon.png"))
winsize = [800, 600]
screen = pygame.display.set_mode(winsize) #, pygame.RESIZABLE)
# Textures (non-map only)
textures = {
"character.png"
}
for filename in textures:
# Load all assets
for filename in os.listdir(os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "textures")):
assets.load(filename)
# Map