Files
kiln/maps/start.toml
T

57 lines
2.2 KiB
TOML
Raw Normal View History

[map]
name = "Starting Room"
width = 60
height = 25
player_start = [30, 12]
[palette]
2026-05-19 00:07:04 -05:00
" " = { archetype = "empty", tile = " ", fg = "#000000", bg = "#000000" }
"#" = { archetype = "wall", tile = "#", fg = "#808080", bg = "#606060" }
"+" = { archetype = "banana", tile = "#", fg = "#808080", bg = "#606060" }
[grid]
content = """
############################################################
# #
# #
# #
# #
# #
# ###### #
# # #
# +++ # #
# # #
# #
# #
2026-06-06 01:37:19 -05:00
# G #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
############################################################
"""
2026-05-30 21:22:36 -05:00
2026-06-06 01:37:19 -05:00
# Placed by its grid character `G` (uppercase-letter convention for objects)
# rather than x/y; the cell under it loads as Empty.
2026-05-30 21:22:36 -05:00
[[objects]]
fg = "#aa3333"
bg = "#000000"
2026-06-06 01:37:19 -05:00
palette = "G"
2026-05-30 21:22:36 -05:00
tile = "#"
2026-06-06 01:37:19 -05:00
solid = false
2026-06-04 20:11:55 -05:00
script_name = "greeter"
[scripts]
greeter = """
fn init() {
2026-06-05 01:09:50 -05:00
log(`hello from object — player at ${Board.player_x}, ${Board.player_y}`);
2026-06-04 23:52:33 -05:00
set_tile(2); // change my glyph to ☻ — proves the write path
2026-06-04 20:11:55 -05:00
}
"""