-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
20 lines (16 loc) · 1.06 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#this next line just ensures that python will see where our game package is (and allow us to reference modules within the package),
#without us having to edit the pythonPath environment variable
import sys
sys.path.append("C:/Users/Text_Adventure_Game") #todo: replace this with wherever your version of the project will be located
from Modules.Scenes.Dungeon.Scene_one import dungeon_intro
from Modules.Scenes.Assets.Characters.Players import player
player_name = "" # global variable for the player's name (todo: Can save this to a file later and read from it when the player has saved)
# We'll be adding more scenes and choices as we build onto the game,
# but leaving the starting scene as-is for now, while I build up all the other scenes, quests and items, etc.
if __name__ == "__main__":
# Initialize the game
print("Welcome to the Adventure Game!")
print("...")
playerObject = player.Player("Human", input("Enter your name: "), "Paladin", "00", "40", list(), "")
print(f"Good luck, {playerObject.name}!")
dungeon_intro.dungeon_intro_scene(playerObject)