the huge refactor

This commit is contained in:
2026-07-24 21:52:05 -05:00
parent 5146cc9bcc
commit 917f4b1bf0
43 changed files with 1807 additions and 3267 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ width = 60
height = 25
# A single procedural grass floor across the whole board (the old mixed
# grass/dirt/stone/water floor is not representable with one floor attribute).
floor = { generator = "grass" }
floor = { biome = "grass" }
# The single grid: all solids and most non-solids (terrain, the player, objects and
# the portal). A space is always a transparent empty cell, so the floor shows through.
+8 -10
View File
@@ -21,16 +21,13 @@ fn tick(me, dt) {
}
"""
[boards.start.map]
[boards.start]
name = "Starting Room"
width = 21
height = 6
# No floor attribute → a blank (black) floor.
# The single grid: all solids and most non-solids. A space is always a transparent
# empty cell, so the floor shows through.
[boards.start.grid]
content = """
grid = """
#####################
# #
# G @ #
@@ -38,8 +35,9 @@ content = """
# #
#####################
"""
[boards.start.grid.palette]
"#" = { kind = "wall", tile = "#", fg = "#808080", bg = "#606060" }
"o" = { kind = "crate", tile = 254, fg = "#aaaaaa", bg = "#000000" }
"@" = { kind = "player" }
"G" = { kind = "object", tile = "#", fg = "#aa3333", bg = "#000000", solid = false, script_name = "greeter" }
[boards.start.palette]
"#" = { type = "builtin", kind = "wall" }
"o" = { type = "builtin", kind = "crate", glyph = { tile = 254, fg = "#aaaaaa", bg = "#000000" } }
"@" = { type = "player" }
# "G" = { type = "object", tile = 35, fg = "#aa3333", bg = "#000000", enter = "block", script_name = "greeter" }
"G" = { type = "builtin", kind = "gem" }