mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2026-01-31 04:22:09 -06:00
finish level loading function
This commit is contained in:
@@ -105,13 +105,14 @@ class TestLevels:
|
|||||||
Tests whether or not a level can be loaded.
|
Tests whether or not a level can be loaded.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
|
from map import Level
|
||||||
|
|
||||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
LEVEL_DIR = os.path.join(BASE_DIR, 'resources', 'levels')
|
LEVEL_DIR = os.path.join(BASE_DIR, 'resources', 'levels')
|
||||||
|
|
||||||
levels = os.listdir(LEVEL_DIR)
|
levels = [os.path.join(LEVEL_DIR, file) for file in os.listdir(LEVEL_DIR)]
|
||||||
|
for level in levels:
|
||||||
pass
|
Level.load_file(2, 3, level)
|
||||||
|
|
||||||
|
|
||||||
class TestDungeon:
|
class TestDungeon:
|
||||||
|
|||||||
Reference in New Issue
Block a user