mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-14 14:12:26 -06:00
feat: ghost animation states, frightened/eaten behaviors, smallvec animation arrays
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
use glam::IVec2;
|
||||
use strum_macros::AsRefStr;
|
||||
|
||||
/// The four cardinal directions.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default, AsRefStr)]
|
||||
#[repr(usize)]
|
||||
#[strum(serialize_all = "lowercase")]
|
||||
pub enum Direction {
|
||||
Up,
|
||||
Down,
|
||||
|
||||
Reference in New Issue
Block a user