lighthouse_protocol/
constants.rs

1use crate::{Rect, Vec2, Zero};
2
3/// The number of rows of the lighthouse.
4pub const LIGHTHOUSE_ROWS: usize = 14;
5/// The number of columns of the lighthouse.
6pub const LIGHTHOUSE_COLS: usize = 28;
7/// The number of pixels in a lighthouse frame.
8pub const LIGHTHOUSE_SIZE: usize = LIGHTHOUSE_ROWS * LIGHTHOUSE_COLS;
9/// The total number of bytes in a lighthouse frame.
10pub const LIGHTHOUSE_BYTES: usize = LIGHTHOUSE_SIZE * 3;
11/// The rectangle of valid coordinates on the lighthouse.
12pub const LIGHTHOUSE_RECT: Rect<i32> = Rect::new(Vec2::ZERO, Vec2::new(LIGHTHOUSE_COLS as i32, LIGHTHOUSE_ROWS as i32));