Implement NAir and initial work on aerials
CI / build-and-test (pull_request) Failing after 2m2s
CI / production-build (pull_request) Failing after 2m50s

This commit is contained in:
2026-09-29 11:42:26 +02:00
parent b9611c1b42
commit d2d00ed7bb
8 changed files with 171 additions and 14 deletions
+3 -10
View File
@@ -23,8 +23,8 @@ pub enum JumpType {
#[derive(Debug, Clone, Hash)]
pub struct JumpState {
jump_type: JumpType,
airborne_state_common: AirborneStateCommon,
pub jump_type: JumpType,
pub airborne_state_common: AirborneStateCommon,
}
#[derive(Debug, Clone, Hash)]
@@ -108,14 +108,7 @@ impl FighterStateImpl for JumpSquatState {
impl FighterStateImpl for JumpState {
const NAME: &'static str = "Jump";
fn check_interrupt(&self, state_context: &mut InterruptContext) -> Option<FighterState> {
if state_context.input.has_command(FighterCommands::Jump) {
Some(FighterState::Jump(JumpState {
jump_type: JumpType::DoubleJump,
airborne_state_common: AirborneStateCommon::default(),
}))
} else {
air_dodge::check_input(state_context)
}
air::air_interrupts_common(state_context, &self.airborne_state_common)
}
fn update(&mut self, state_context: &mut UpdateContext) {