Fix level loading and add an empty level.

This commit is contained in:
bʰedoh₂ swé 2024-04-05 00:52:39 +05:00
parent 3b2522b12b
commit 1845425c16
2 changed files with 5 additions and 3 deletions

View File

@ -43,9 +43,10 @@ def mainLoop():
wall_buffer = []
try:
level = parse_level_from_string(open_level(sys.argv[1]))
leveltoparse = open_level(sys.argv[1])
except IndexError:
level = parse_level_from_string(open_level("maps/cuberoom.p3hel"))
leveltoparse = open_level("maps/cuberoom.p3hel")
level = parse_level_from_string(leveltoparse)
while True:
for event in pygame.event.get():

1
maps/empty.p3hel Normal file
View File

@ -0,0 +1 @@
True/0/0/(0, 0, 0