move title proc to romms file

This commit is contained in:
mollusk 2020-06-03 02:14:39 -07:00
parent cfd7d244ca
commit 89f599e710
2 changed files with 24 additions and 19 deletions

View File

@ -17,24 +17,9 @@ when isMainModule:
proc title_screen() =
echo fmt"""
Welcome to Geedren Mansion. You are {player.name}, a capable 24 year old adventurer.
Your uncle Rob has been missing for 10 years. He went hunting for the secrets and treasure rumored to
be hidden deep within the walls of the mysterious Geedren Mansion. Now that you are of age and have
trained in adventuring, you have decided to find your uncle. Your mission is dangerous as many men
have gone missing with the mansion being their last known whereabouts. The door is unlocked and you
walk right in the doors of the massive mansion.
"""
stdout.write("Press 1 to contnue: ")
var choice = stdin.readLine()
if choice == "1":
foyer_room(player)
else:
echo "You pressed the wrong key!"

View File

@ -5,6 +5,8 @@ import
procs, procs,
strformat strformat
proc foyer_room*(player: Character) = proc foyer_room*(player: Character) =
var var
@ -37,3 +39,21 @@ proc foyer_room*(player: Character) =
]# ]#
discard addToBackpack(player, desk) discard addToBackpack(player, desk)
proc title_screen*() =
echo fmt"""
Welcome to Geedren Mansion. You are {player.name}, a capable 24 year old adventurer.
Your uncle Rob has been missing for 10 years. He went hunting for the secrets and treasure rumored to
be hidden deep within the walls of the mysterious Geedren Mansion. Now that you are of age and have
trained in adventuring, you have decided to find your uncle. Your mission is dangerous as many men
have gone missing with the mansion being their last known whereabouts. The door is unlocked and you
walk right in the doors of the massive mansion.
"""
stdout.write("Press 1 to contnue: ")
var choice = stdin.readLine()
if choice == "1":
foyer_room(player)
else:
echo "You pressed the wrong key!"