move title proc to romms file
This commit is contained in:
parent
cfd7d244ca
commit
89f599e710
@ -17,28 +17,13 @@ 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!"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
title_screen()
|
||||
|
||||
|
||||
|
||||
title_screen()
|
||||
|
@ -5,6 +5,8 @@ import
|
||||
procs,
|
||||
strformat
|
||||
|
||||
|
||||
|
||||
proc foyer_room*(player: Character) =
|
||||
|
||||
var
|
||||
@ -37,3 +39,21 @@ proc foyer_room*(player: Character) =
|
||||
]#
|
||||
|
||||
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!"
|
Loading…
x
Reference in New Issue
Block a user