jumping and stuff
This commit is contained in:
@@ -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)]
|
||||
|
Reference in New Issue
Block a user