lighting
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user