palette changes
This commit is contained in:
@@ -196,7 +196,7 @@ palette = { "g" = { kind = "floor", generator = "grass" } }
|
||||
|
||||
[[boards.room1.layers]]
|
||||
sparse = [ { x = 5, y = 3, ch = "C" }, { x = 9, y = 7, ch = "C" } ] # two chests
|
||||
palette = { " " = { kind = "empty" }, "C" = { kind = "object", script_name = "chest" } }
|
||||
palette = { "C" = { kind = "object", script_name = "chest" } } # spaces are implicitly empty
|
||||
```
|
||||
|
||||
```toml
|
||||
@@ -237,8 +237,8 @@ content = """
|
||||
"d" = { kind = "floor", generator = "dirt" }
|
||||
"." = { kind = "floor", tile = ".", fg = "#222", bg = "#000" } # fixed floor glyph
|
||||
|
||||
# Layer 1: terrain, the player, objects and portals. A space here resolves to
|
||||
# kind="empty" (transparent), so the floor below shows through.
|
||||
# Layer 1: terrain, the player, objects and portals. A space is always a
|
||||
# transparent empty cell, so the floor below shows through.
|
||||
[[boards.room1.layers]]
|
||||
content = """
|
||||
############################################################
|
||||
@@ -246,7 +246,7 @@ content = """
|
||||
############################################################
|
||||
"""
|
||||
[boards.room1.layers.palette]
|
||||
" " = { kind = "empty" } # transparent
|
||||
# A space is always a transparent empty cell — it is never a palette key.
|
||||
"#" = { kind = "wall", tile = 35, fg = "#808080", bg = "#606060" }
|
||||
"o" = { kind = "crate", tile = 254, fg = "#aaaaaa", bg = "#000000" } # solid + pushable (any dir)
|
||||
"-" = { kind = "hcrate" } # pushable east/west only
|
||||
|
||||
Reference in New Issue
Block a user