-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
69 lines (46 loc) · 1.75 KB
/
main.py
File metadata and controls
69 lines (46 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
""" IMPORTS """
from chapters import (chapter1, chapter2, chapter3, chapter4,
open_world, return_to_ironwind_outpost)
from areas.data_grave_area import go_to_data_grave
from areas.salvage_cache_area import go_to_salvage_cache
from areas.the_foundry_area import go_to_the_foundry
from areas.the_hardpoint_area import go_to_the_hardpoint
from areas.the_molten_spill_area import go_to_molten_spill
from game_modules.game_intro import game_intro
from tools.audio_manager import initialize_audio
initialize_audio()
def chapter_flow(player):
if player.current_chapter <= 2:
chapter2(player)
if player.current_chapter <= 3:
chapter3(player)
if player.current_chapter <= 4:
chapter4(player)
if player.current_chapter >= 5 or player.location:
if player.location == "The Data Grave":
go_to_data_grave(player)
elif player.location == "Salvage Cache":
go_to_salvage_cache(player)
elif player.location == "The Foundry":
go_to_the_foundry(player)
elif player.location == "The Molten Spill":
go_to_molten_spill(player)
elif player.location == "Ironwind Outpost":
return_to_ironwind_outpost(player)
elif player.location == "The Hardpoint":
go_to_the_hardpoint(player)
else:
open_world(player)
return player
def main():
loaded_player = game_intro()
if loaded_player is not None:
player = loaded_player
else:
print("\nStarting a new game...\n")
player = chapter1()
chapter_flow(player)
return
if __name__ == "__main__":
main()
# SemVer self reminders: Use 'Major, Minor, Patch' (E.G "v0[Major].1[Minor].0[Patch]) when naming versions.