From 2841b1418ccdea6e44be5421e00df7a7a7ca688a Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Thu, 18 Nov 2021 20:51:30 -0800 Subject: [PATCH] Update example game prelude to be betterer Signed-off-by: Alek Ratzloff --- examplegame/rooms.py | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/examplegame/rooms.py b/examplegame/rooms.py index adaff2a..a5acd83 100644 --- a/examplegame/rooms.py +++ b/examplegame/rooms.py @@ -4,8 +4,10 @@ from agame.room import Room from agame.trigger import * from . import database +LINEBREAK = "=" * 70 + ################################################################################ -# Game intro +# Prelude ################################################################################ database.add_room( Room( @@ -15,16 +17,17 @@ database.add_room( items={}, teleport_actions=[ PrintAction( - "." * 70, + LINEBREAK, + # "Many stories have been told about this place. Some are tall " "tales and mostly contradictory. Some others, however, are true.", # "This is one of those stories.", - "." * 70, + LINEBREAK, ), PlayerInputAction(), PrintAction( - "." * 70, + LINEBREAK, # "There used to be trees here. Fifteen years ago, we were sitting " "in the shade, telling stories about last summer and what we hope " @@ -36,13 +39,15 @@ database.add_room( "long echo. Nothing else stands tall enough to block the sound.", # "No animals patrol the sky nor ground. Life has left this place.", - "." * 70, + LINEBREAK, ), PlayerInputAction(), PrintAction( - "." * 70, + LINEBREAK, + # "It is because of the ((machine)).", - "." * 70, + # + LINEBREAK, ), PlayerInputAction(), SleepAction(1), @@ -52,6 +57,12 @@ database.add_room( SleepAction(1), PrintAction("..."), SleepAction(1), + PrintAction("...."), + SleepAction(1), + PrintAction("....."), + SleepAction(1), + PrintAction("......"), + SleepAction(1), PrintAction("You awaken from a fitful sleep. Where are you again?"), PlayerInputAction(), TeleportAction("cabin_inside"),