pinch-points 0.8.0

A fast, kid-friendly crab-routing game: route streams of crabs into your sandcastle before time runs out
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::sim::direction::Direction;

/// Where a creature stands on the grid: `progress` subunits past the centre
/// of `tile`, heading in `dir`. Crabs and gulls both carry one of these as
/// last tick's position, which only the render layer reads (spec ยง7.4) to
/// slide a sprite between two ticks.
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub struct Pose {
    pub tile: u16,
    pub dir: Direction,
    pub progress: u16,
}