speech bubble fixes, multi objects
This commit is contained in:
+132
-1
@@ -1,6 +1,6 @@
|
||||
[world]
|
||||
name = "Kiln Demo"
|
||||
start = "start"
|
||||
start = "house"
|
||||
|
||||
# Named Rhai scripts shared across all boards in this world.
|
||||
# Objects reference a script by name via `script_name`.
|
||||
@@ -90,6 +90,58 @@ fn bump(id) {
|
||||
}
|
||||
"""
|
||||
|
||||
bookshelf = """
|
||||
fn bump(id) {
|
||||
scroll([
|
||||
" THE BOOKSHELF",
|
||||
" ",
|
||||
"A well-worn shelf packed with old volumes. You scan the spines:",
|
||||
" ",
|
||||
" 'Practical Herbalism and Country Remedies'",
|
||||
" 'A History of the Seven Kingdoms, Vol. II'",
|
||||
" 'Monsters of the Northern Reach'",
|
||||
" 'The Innkeeper's Handbook'",
|
||||
" 'Common Stars and Their Names'",
|
||||
" 'Letters to No One in Particular' (handwritten)",
|
||||
" ",
|
||||
"One has a pressed flower tucked in as a bookmark.",
|
||||
]);
|
||||
}
|
||||
"""
|
||||
|
||||
fireplace = """
|
||||
fn bump(id) {
|
||||
say("The fire crackles warmly.\\nYou feel at ease.");
|
||||
}
|
||||
"""
|
||||
|
||||
chest = """
|
||||
fn bump(id) {
|
||||
scroll([
|
||||
" THE CHEST",
|
||||
" ",
|
||||
"A sturdy oak chest with iron fittings. The latch is unlocked.",
|
||||
" ",
|
||||
"Inside you find:",
|
||||
"",
|
||||
"- A wool blanket, slightly moth-eaten",
|
||||
"- Three copper coins",
|
||||
"- A half-empty bottle of something medicinal",
|
||||
"- A child's wooden toy horse",
|
||||
"- A folded letter, sealed but never sent",
|
||||
]);
|
||||
}
|
||||
"""
|
||||
|
||||
yammerer = """
|
||||
fn tick(dt) {
|
||||
if Queue.length() == 0 {
|
||||
say("blahblahblah");
|
||||
delay(1);
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
[boards.start.map]
|
||||
name = "Starting Room"
|
||||
width = 60
|
||||
@@ -212,3 +264,82 @@ bg = "#000000"
|
||||
solid = true
|
||||
name = "noticeboard"
|
||||
script_name = "noticeboard"
|
||||
|
||||
[boards.house.map]
|
||||
name = "The House"
|
||||
width = 60
|
||||
height = 25
|
||||
player_start = "@"
|
||||
|
||||
[boards.house.palette]
|
||||
" " = { archetype = "empty", tile = " ", fg = "#000000", bg = "#000000" }
|
||||
"#" = { archetype = "wall", tile = 178, fg = "#888888", bg = "#555555" }
|
||||
|
||||
[boards.house.floor]
|
||||
tile = 176
|
||||
fg = "#888888"
|
||||
bg = "#444444"
|
||||
|
||||
[boards.house.grid]
|
||||
content = """
|
||||
############################################################
|
||||
# #
|
||||
# K ###F### #
|
||||
# # # #
|
||||
# ####### #
|
||||
# #
|
||||
# #
|
||||
# ######### T #
|
||||
# # # T #
|
||||
# ######### #
|
||||
# T T #
|
||||
# #
|
||||
# @ T #
|
||||
# #
|
||||
# T #
|
||||
# ######C###### #
|
||||
# T # # #
|
||||
# ############# #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
############################################################
|
||||
"""
|
||||
|
||||
[[boards.house.objects]]
|
||||
palette = "K"
|
||||
tile = 240
|
||||
fg = "#aa7733"
|
||||
bg = "#3d1c00"
|
||||
solid = true
|
||||
name = "bookshelf"
|
||||
script_name = "bookshelf"
|
||||
|
||||
[[boards.house.objects]]
|
||||
palette = "F"
|
||||
tile = 15
|
||||
fg = "#ff8800"
|
||||
bg = "#220000"
|
||||
solid = true
|
||||
name = "fireplace"
|
||||
script_name = "fireplace"
|
||||
|
||||
[[boards.house.objects]]
|
||||
palette = "C"
|
||||
tile = 240
|
||||
fg = "#ccaa44"
|
||||
bg = "#222200"
|
||||
solid = true
|
||||
name = "chest"
|
||||
script_name = "chest"
|
||||
|
||||
[[boards.house.objects]]
|
||||
palette = "T"
|
||||
tile = 1
|
||||
fg = "#99ff44"
|
||||
bg = "#000000"
|
||||
solid = true
|
||||
script_name = "yammerer"
|
||||
|
||||
Reference in New Issue
Block a user