glyph serialization

This commit is contained in:
2026-07-26 23:29:43 -05:00
parent 9844671c46
commit ab5f22fe76
20 changed files with 408 additions and 143 deletions
+4 -3
View File
@@ -163,14 +163,15 @@ impl FloorBiome {
if rng.next_bool(Probability::new(prob)) {
let ch = chars[rng.next_lim_usize(chars.len())];
Glyph {
tile: ch as u32,
tile: ch,
fg: lighten(bg, 35), // a lighter shade of the same ground
bg,
}
} else {
// Bare ground: a space (its fg never shows).
// Bare ground: a literal space, which paints over whatever is
// beneath rather than revealing it (unlike the transparent sentinel).
Glyph {
tile: 32,
tile: ' ',
fg: bg,
bg,
}