Skip to main content

pinch_points/sim/
pose.rs

1use crate::sim::direction::Direction;
2
3/// Where a creature stands on the grid: `progress` subunits past the centre
4/// of `tile`, heading in `dir`. Crabs and gulls both carry one of these as
5/// last tick's position, which only the render layer reads (spec ยง7.4) to
6/// slide a sprite between two ticks.
7#[derive(Clone, Copy, PartialEq, Eq, Debug)]
8pub struct Pose {
9    pub tile: u16,
10    pub dir: Direction,
11    pub progress: u16,
12}