From 3fb2a693d5fe63f8f0b87a0c0c36f1679ff75d06 Mon Sep 17 00:00:00 2001 From: He4eT Date: Tue, 10 Dec 2024 04:51:40 +0100 Subject: [PATCH] Boring starting room with note --- characters/pc.t | 11 +++++++++++ index.t | 8 +++----- items/note.t | 17 +++++++++++++++++ locations/startingRoom.t | 3 +++ 4 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 characters/pc.t create mode 100644 items/note.t create mode 100644 locations/startingRoom.t diff --git a/characters/pc.t b/characters/pc.t new file mode 100644 index 0000000..9771833 --- /dev/null +++ b/characters/pc.t @@ -0,0 +1,11 @@ +me: Actor + 'me/self' + location = startingRoom +; + ++ jeans: Wearable + 'gray grey jeans/pants' + 'jeans' + "Pair of gray denim pants. " + wornBy = me +; diff --git a/index.t b/index.t index 1cabf4d..84ec2a8 100644 --- a/index.t +++ b/index.t @@ -17,10 +17,8 @@ gameMain: GameMainDef } ; -firstRoom: Room 'Starting Room' - "This is the boring starting room." -; +#include "characters/pc.t" -+me: Actor +#include "locations/startingRoom.t" -; +#include "items/note.t" diff --git a/items/note.t b/items/note.t new file mode 100644 index 0000000..244e703 --- /dev/null +++ b/items/note.t @@ -0,0 +1,17 @@ +note: Readable + 'note' + 'note' + "This is a simple tutorial note. " + location = startingRoom + readDesc () { + " + Use n, e, s and w to navigate.\n + Use l to look around.\n + Use x to examine something.\n + Use i to check the inventory.\n + \b + Don't be afraid to experiment with other verbs, + such as take, open, and so on. + "; + } +; diff --git a/locations/startingRoom.t b/locations/startingRoom.t new file mode 100644 index 0000000..7e2283e --- /dev/null +++ b/locations/startingRoom.t @@ -0,0 +1,3 @@ +startingRoom: Room 'Starting Room' + "This is the boring starting room." +;