Implement hitstop shake (#42)
CI / build-and-test (push) Successful in 1m22s

Reviewed-on: #42
Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #42.
This commit is contained in:
2026-09-18 11:56:53 +00:00
committed by EIREXE
parent b9f1a52bbc
commit 2b5af49e15
19 changed files with 201 additions and 57 deletions
+4
View File
@@ -82,6 +82,10 @@ impl HitStop {
Self(frames)
}
pub fn calculate_shake_frames(&self, game_settings: &GameSettings) -> u32 {
(FGi32::from_num(self.0) * game_settings.fighter_common.visual_shake_frames_per_hitstop_frame).floor().to_num()
}
}
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]