57 lines
2.2 KiB
TOML
57 lines
2.2 KiB
TOML
[map]
|
|
name = "Starting Room"
|
|
width = 60
|
|
height = 25
|
|
player_start = [30, 12]
|
|
|
|
[palette]
|
|
" " = { archetype = "empty", tile = " ", fg = "#000000", bg = "#000000" }
|
|
"#" = { archetype = "wall", tile = "#", fg = "#808080", bg = "#606060" }
|
|
"+" = { archetype = "banana", tile = "#", fg = "#808080", bg = "#606060" }
|
|
|
|
[grid]
|
|
content = """
|
|
############################################################
|
|
# #
|
|
# #
|
|
# #
|
|
# #
|
|
# #
|
|
# ###### #
|
|
# # #
|
|
# +++ # #
|
|
# # #
|
|
# #
|
|
# #
|
|
# 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
|
|
}
|
|
""" |