forked from bedohswe/p3he
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
|
||||
debugInfo = True
|
||||
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