glyph serialization
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user