finish level loading function

This commit is contained in:
Xevion
2020-04-21 00:07:11 -05:00
parent c6a8142358
commit 59c67f1d57
+4 -3
View File
@@ -105,13 +105,14 @@ class TestLevels:
Tests whether or not a level can be loaded.
"""
import os
from map import Level
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
LEVEL_DIR = os.path.join(BASE_DIR, 'resources', 'levels')
levels = os.listdir(LEVEL_DIR)
pass
levels = [os.path.join(LEVEL_DIR, file) for file in os.listdir(LEVEL_DIR)]
for level in levels:
Level.load_file(2, 3, level)
class TestDungeon: