Fix level loading and add an empty level.
This commit is contained in:
parent
3b2522b12b
commit
1845425c16
5
main.py
5
main.py
@ -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
1
maps/empty.p3hel
Normal file
@ -0,0 +1 @@
|
||||
True/0/0/(0, 0, 0
|
Loading…
Reference in New Issue
Block a user