Implement hitstun and knockback.
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
use crate::{
|
||||
fighter::{
|
||||
animation::AnimKind, collision, state::{
|
||||
FighterState, FighterStateContext, FighterStateImpl, air, fall::FallState, ground::GroundedStateCommon, land::{LandingState, LandingType},
|
||||
animation::AnimKind,
|
||||
collision,
|
||||
state::{
|
||||
FighterState, FighterStateContext, FighterStateImpl, air,
|
||||
fall::FallState,
|
||||
ground::GroundedStateCommon,
|
||||
land::{LandingState, LandingType},
|
||||
},
|
||||
}, input, math::vec::FGVec2,
|
||||
},
|
||||
input,
|
||||
math::vec::FGVec2,
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Hash)]
|
||||
@@ -42,7 +49,10 @@ impl FighterStateImpl for AirDodgeState {
|
||||
let grounded_common = GroundedStateCommon {
|
||||
current_line_id: res.line_id,
|
||||
};
|
||||
Some(FighterState::Land(LandingState { grounded_common, landing_type: LandingType::Special }))
|
||||
Some(FighterState::Land(LandingState {
|
||||
grounded_common,
|
||||
landing_type: LandingType::Special,
|
||||
}))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user