Files
geedren-mansion/src/geedren_mansion.nim

45 lines
1.1 KiB
Nim

# This is just an example to get you started. A typical hybrid package
# uses this file as the main entry point of the application.
import
# package imports
geedren_mansionpkg/objects,
geedren_mansionpkg/rooms,
geedren_mansionpkg/items,
geedren_mansionpkg/characters,
# Language imports
strformat
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()