diff --git a/game/assets/character/player_run.png b/game/assets/character/player_run.png index d06842a..54adfba 100644 Binary files a/game/assets/character/player_run.png and b/game/assets/character/player_run.png differ diff --git a/game/assets/character/player_run_old.png b/game/assets/character/player_run_old.png index 87b5997..d06842a 100644 Binary files a/game/assets/character/player_run_old.png and b/game/assets/character/player_run_old.png differ diff --git a/game/assets/configs/application.json b/game/assets/configs/application.json index f8f92bb..fb1ab95 100644 --- a/game/assets/configs/application.json +++ b/game/assets/configs/application.json @@ -49,5 +49,5 @@ 188 ] }, - "animation_fps": 15 + "animation_fps": 23 } diff --git a/game/src/character/mod.rs b/game/src/character/mod.rs index 4ee74e9..2c014cd 100644 --- a/game/src/character/mod.rs +++ b/game/src/character/mod.rs @@ -40,13 +40,13 @@ impl MainCharacter { movement_force: Vector2::zero(), velocity: Vector2::zero(), base_velocity: Vector2::new(0.0, GRAVITY_PPS), - size: Vector2::new(60.0, 100.0), + size: Vector2::new(85.0, 100.0), sprite_sheet: AnimatedSpriteSheet::new( sprite_sheet, - Vector2::new(300.0, 300.0), - 3, - 8, - 6, + Vector2::new(258.0, 277.0), + 4, + 15, + 0, ), current_state: CharacterState::default(), state_set_timestamp: Utc::now(), diff --git a/game/src/character/render.rs b/game/src/character/render.rs index 8f1430e..21d9023 100644 --- a/game/src/character/render.rs +++ b/game/src/character/render.rs @@ -22,7 +22,7 @@ pub fn render_character_in_camera_space( // Calculate the frame ID to render let frame_id = match player.current_state { - crate::character::CharacterState::Jumping => 4, + crate::character::CharacterState::Jumping => 6, _ => (frames_since_state_change % player.sprite_sheet.sprite_count as f32).floor() as usize, };