Add display abstraction
In case we want to run this on something that isn't an ANSI terminal, we have the option to implement it however we want. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -7,11 +7,8 @@ from agame.trigger import *
|
||||
# This is the *game* here
|
||||
database = Database()
|
||||
|
||||
# This is the start room
|
||||
start_room = "prelude"
|
||||
|
||||
from . import rooms
|
||||
from . import vars
|
||||
|
||||
# Build the game state
|
||||
game = Game(
|
||||
database=database,
|
||||
room=database.rooms["prelude"],
|
||||
)
|
||||
|
||||
@@ -59,7 +59,7 @@ database.add_room(
|
||||
"This is one of those stories.",
|
||||
LINEBREAK,
|
||||
),
|
||||
PlayerInputAction(),
|
||||
WaitForAckAction(),
|
||||
PrintAction(
|
||||
LINEBREAK,
|
||||
#
|
||||
@@ -75,7 +75,7 @@ database.add_room(
|
||||
"No animals patrol the sky nor ground. Life has left this place.",
|
||||
LINEBREAK,
|
||||
),
|
||||
PlayerInputAction(),
|
||||
WaitForAckAction(),
|
||||
PrintAction(
|
||||
LINEBREAK,
|
||||
#
|
||||
@@ -83,22 +83,25 @@ database.add_room(
|
||||
#
|
||||
LINEBREAK,
|
||||
),
|
||||
PlayerInputAction(),
|
||||
SleepAction(1),
|
||||
WaitForAckAction(),
|
||||
PrintAction(LINEBREAK),
|
||||
SleepAction(0.75),
|
||||
PrintAction("."),
|
||||
SleepAction(1),
|
||||
SleepAction(0.75),
|
||||
PrintAction(".."),
|
||||
SleepAction(1),
|
||||
SleepAction(0.75),
|
||||
PrintAction("..."),
|
||||
SleepAction(1),
|
||||
SleepAction(0.75),
|
||||
PrintAction("...."),
|
||||
SleepAction(1),
|
||||
SleepAction(0.75),
|
||||
PrintAction("....."),
|
||||
SleepAction(1),
|
||||
SleepAction(0.75),
|
||||
PrintAction("......"),
|
||||
SleepAction(1),
|
||||
SleepAction(0.75),
|
||||
PrintAction(LINEBREAK),
|
||||
PrintAction("You awaken from a fitful sleep. Where are you again?"),
|
||||
PlayerInputAction(),
|
||||
WaitForAckAction(),
|
||||
PrintAction(LINEBREAK),
|
||||
TeleportAction("cabin_inside"),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user