Refactor state system

This commit is contained in:
2026-08-07 15:13:43 +02:00
parent 03cbb1657d
commit ad6c1e17ac
20 changed files with 268 additions and 103 deletions
+4 -1
View File
@@ -3,13 +3,15 @@ use bevy::prelude::*;
pub struct FighterSettingsCommon {
pub walk_speed_ease: f32,
pub ground_max_horizontal_velocity: f32,
pub ground_friction_over_walk_speed_multiplier: f32
}
pub struct InputSettingsCommon {
pub stick_deadzone: f32,
pub trigger_deadzone: f32,
pub smash_input_reset_axis_threshold: f32,
pub smash_input_axis_threshold: f32,
pub smash_input_frame_threshold: u32
pub run_stick_threshold: f32,
pub smash_input_frame_threshold: u32,
}
impl Default for InputSettingsCommon {
@@ -19,6 +21,7 @@ impl Default for InputSettingsCommon {
trigger_deadzone: 0.3f32,
smash_input_reset_axis_threshold: 0.25,
smash_input_axis_threshold: 0.8,
run_stick_threshold: 0.625,
smash_input_frame_threshold: 2
}
}