feat: add doc page

This commit is contained in:
2024-12-30 22:13:53 +02:00
parent cd602f30c1
commit 25387397c4
4 changed files with 79 additions and 175 deletions

View File

@@ -1,32 +1,3 @@
#[derive(Component, Default)]
pub struct Music;
#[derive(Component, Default)]
pub struct SoundEffect;
#[derive(Component, Debug, Clone, Copy, PartialEq, Eq, Default, Reflect)]
#[reflect(Component)]
pub struct Player;
#[derive(Component, Reflect)]
#[reflect(Component)]
pub struct MovementController {
pub intent: Vec2,
pub max_speed: f32,
}
#[derive(Component, Reflect)]
#[reflect(Component)]
pub struct PlayerAnimation {
timer: Timer,
frame: usize,
state: PlayerAnimationState,
}
#[derive(Component, Debug, Reflect)]
#[reflect(Component)]
pub struct InteractionPalette {
pub none: Color,
pub hovered: Color,
pub pressed: Color,
}