Boring starting room with note

This commit is contained in:
He4eT 2024-12-10 04:51:40 +01:00
commit 3fb2a693d5
4 changed files with 34 additions and 5 deletions

11
characters/pc.t Normal file
View file

@ -0,0 +1,11 @@
me: Actor
'me/self'
location = startingRoom
;
+ jeans: Wearable
'gray grey jeans/pants'
'jeans'
"Pair of gray denim pants. "
wornBy = me
;

View file

@ -17,10 +17,8 @@ gameMain: GameMainDef
} }
; ;
firstRoom: Room 'Starting Room' #include "characters/pc.t"
"This is the boring starting room."
;
+me: Actor #include "locations/startingRoom.t"
; #include "items/note.t"

17
items/note.t Normal file
View file

@ -0,0 +1,17 @@
note: Readable
'note'
'note'
"This is a simple tutorial note. "
location = startingRoom
readDesc () {
"
Use <b>n</b>, <b>e</b>, <b>s</b> and <b>w</b> to navigate.\n
Use <b>l</b> to <b>look around</b>.\n
Use <b>x</b> to <b>examine</b> something.\n
Use <b>i</b> to check the <b>inventory</b>.\n
\b
Don't be afraid to experiment with other verbs,
such as <b>take</b>, <b>open</b>, and so on.
";
}
;

3
locations/startingRoom.t Normal file
View file

@ -0,0 +1,3 @@
startingRoom: Room 'Starting Room'
"This is the boring starting room."
;