jumping and stuff

This commit is contained in:
2022-08-14 21:05:27 +02:00
parent f24d13458a
commit 8391811448
3 changed files with 57 additions and 12 deletions

View File

@@ -23,10 +23,15 @@ pub struct Player {
#[derive(Debug, Default, Clone, Copy, Serialize, Deserialize, Component)]
pub struct PlayerInput {
pub most_recent_tick: Option<u32>,
pub up: bool,
pub down: bool,
pub left: bool,
pub right: bool,
pub space: bool,
}
#[derive(Debug, Component)]
pub struct Jumper {
pub jump_impulse: f32,
pub is_jumping: bool,
}
#[derive(Debug, Serialize, Deserialize, Component)]