Проектная работа - WIP
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user