Add airdodge

This commit is contained in:
2026-08-26 22:04:41 +02:00
parent d9222409ce
commit e7e744f15e
12 changed files with 137 additions and 5 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ use bevy::prelude::*;
use crate::{
fighter::{
animation::AnimKind, collision, state::{
FighterState, FighterStateContext, FighterStateImpl, air, fall::FallState, ground::{self, GroundedMotionResult, GroundedStateCommon}, land::LandingState,
FighterState, FighterStateContext, FighterStateImpl, air, air_dodge, fall::FallState, ground::{self, GroundedMotionResult, GroundedStateCommon}, land::LandingState,
},
}, input::FighterCommands,
};
@@ -98,8 +98,8 @@ impl FighterStateImpl for JumpSquatState {
impl FighterStateImpl for JumpState {
const NAME: &'static str = "Jump";
fn check_interrupt(&self, _state_context: &FighterStateContext) -> Option<FighterState> {
None
fn check_interrupt(&self, state_context: &FighterStateContext) -> Option<FighterState> {
air_dodge::check_input(state_context)
}
fn update(&mut self, state_context: &mut FighterStateContext) {