Added load game option to main menu

small-fixes-for-0.3.3
Max Lange 8 years ago
parent d83d196f19
commit 81ac6a28f2

@ -4,6 +4,7 @@
*|Project Interstellar|40 |$typeface|$color |$half + 0|%10 + 0|
*|Main Menu |30 |$typeface|$color |$half + 0|$qrt + 0|
@|Start |$size|$ratio|$typeface|$color|$box1|$half + 0|%40 + 0|
~@|Settings |$size|$ratio|$typeface|$color|$box1|BottomLeft|%0 + 0|%0 + 10|
~~@|Credits |$size|$ratio|$typeface|$color|$box1|BottomLeft|%0 + 0|%0 + 10|
~~~@|Exit |$size|$ratio|$typeface|$color|$box1|BottomLeft|%0 + 0|%0 + 10|
~@|Load Game |$size|$ratio|$typeface|$color|$box1|BottomLeft|%0 + 0|%0 + 10|
~~@|Settings |$size|$ratio|$typeface|$color|$box1|BottomLeft|%0 + 0|%0 + 10|
~~~@|Credits |$size|$ratio|$typeface|$color|$box1|BottomLeft|%0 + 0|%0 + 10|
~~~~@|Exit |$size|$ratio|$typeface|$color|$box1|BottomLeft|%0 + 0|%0 + 10|

@ -192,6 +192,15 @@ def main():
settings.reset()
sounds.music.play("next")
run = False
if event == "Load Game":
savegame = savegames()
if savegame is not None:
settings.load(savegame)
sounds.music.play("next", 0)
settings.upd("get_saves")
run = False
else:
pygame.mouse.set_visible(True)
if event == "Settings":
options()
main_menu.update()

Loading…
Cancel
Save