Files
kiln/maps/start.toml
T

60 lines
2.5 KiB
TOML

[map]
name = "Starting Room"
width = 60
height = 25
player_start = "@" # placed by the '@' grid char (convention)
[palette]
" " = { archetype = "empty", tile = " ", fg = "#000000", bg = "#000000" }
"#" = { archetype = "wall", tile = "#", fg = "#808080", bg = "#606060" }
"+" = { archetype = "banana", tile = "#", fg = "#808080", bg = "#606060" }
"o" = { archetype = "crate", tile = 254, fg = "#aaaaaa", bg = "#000000" }
"-" = { archetype = "hcrate", tile = 29, fg = "#aaaaaa", bg = "#000000" }
"|" = { archetype = "vcrate", tile = 18, fg = "#aaaaaa", bg = "#000000" }
[grid]
content = """
############################################################
# #
# #
# #
# #
# #
# ###### #
# # #
# +++ # #
# # #
# #
# #
# oo G - | @ #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
############################################################
"""
# Placed by its grid character `G` (uppercase-letter convention for objects)
# rather than x/y; the cell under it loads as Empty.
[[objects]]
fg = "#aa3333"
bg = "#000000"
palette = "G"
tile = "#"
solid = false
script_name = "greeter"
[scripts]
greeter = """
fn init() {
log(`hello from object — player at ${Board.player_x}, ${Board.player_y}`);
set_tile(2); // change my glyph to ☻ — proves the write path
}
"""