Fix level loading and add an empty level.
This commit is contained in:
parent
3b2522b12b
commit
1845425c16
7
main.py
7
main.py
@ -41,11 +41,12 @@ def mainLoop():
|
|||||||
fontSize = 18
|
fontSize = 18
|
||||||
debugInfo = True
|
debugInfo = True
|
||||||
wall_buffer = []
|
wall_buffer = []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
level = parse_level_from_string(open_level(sys.argv[1]))
|
leveltoparse = open_level(sys.argv[1])
|
||||||
except IndexError:
|
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:
|
while True:
|
||||||
for event in pygame.event.get():
|
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