Проектная работа - WIP

This commit is contained in:
5 changed files with 48 additions and 89 deletions
+4
View File
@@ -9,6 +9,10 @@ pub const SNAKE_VELOCITY: u8 = (GRID_SIZE as f32 / 1.0) as u8;
#[derive(Component)]
pub struct Head;
/// Сегмент змеиного хвоста
#[derive(Component)]
pub struct Tail(pub u16);
/// Направление движения
#[derive(Component, PartialEq, Clone, Copy)]
pub enum Direction {