This commit is contained in:
2026-07-11 14:47:08 -05:00
parent 6dccf5fc23
commit 03185c9c68
17 changed files with 408 additions and 105 deletions
+4 -4
View File
@@ -424,10 +424,10 @@ fn draw_board_area(frame: &mut Frame, inner: Rect, game: &GameState, ui: &mut Ui
);
} else {
let board = &game.board();
// On a dark board this is the player's field of view; on a lit board it's
// None (draw everything). Computed once and shared by both widgets so the
// board and its speech bubbles agree on what's visible.
let fov = board.player_fov();
// On a dark board this is the player's lighting (LOS + colored light); on a
// lit board it's None (draw everything). Computed once and shared by both
// widgets so the board and its speech bubbles agree on what's visible.
let fov = board.lighting(game.torch());
frame.render_widget(BoardWidget::new(board).fov(fov.as_ref()), inner);
frame.render_widget(
SpeechBubblesWidget::new(board, &game.speech_bubbles).fov(fov.as_ref()),