mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-22 05:33:02 +00:00
Require control to look up/down while falling
This commit is contained in:
parent
f1542246c6
commit
81755d4ad9
|
@ -800,11 +800,17 @@ impl Player {
|
|||
self.anim_num = 0;
|
||||
self.anim_counter = 0;
|
||||
}
|
||||
} else if (self.controller.look_up() || self.strafe_up) && self.control_mode == ControlMode::Normal {
|
||||
} else if state.control_flags.control_enabled()
|
||||
&& (self.controller.look_up() || self.strafe_up)
|
||||
&& self.control_mode == ControlMode::Normal
|
||||
{
|
||||
self.skin.set_state(PlayerAnimationState::FallingLookingUp);
|
||||
self.anim_num = 0;
|
||||
self.anim_counter = 0;
|
||||
} else if self.controller.look_down() && self.control_mode == ControlMode::Normal {
|
||||
} else if state.control_flags.control_enabled()
|
||||
&& self.controller.look_down()
|
||||
&& self.control_mode == ControlMode::Normal
|
||||
{
|
||||
self.skin.set_state(PlayerAnimationState::FallingLookingDown);
|
||||
self.anim_num = 0;
|
||||
self.anim_counter = 0;
|
||||
|
|
|
@ -1772,6 +1772,7 @@ impl Scene for GameScene {
|
|||
TextScriptExecutionState::Running(_, _)
|
||||
| TextScriptExecutionState::WaitTicks(_, _, _)
|
||||
| TextScriptExecutionState::WaitInput(_, _, _)
|
||||
| TextScriptExecutionState::WaitStanding(_, _)
|
||||
| TextScriptExecutionState::Msg(_, _, _, _)
|
||||
| TextScriptExecutionState::MsgNewLine(_, _, _, _, _)
|
||||
| TextScriptExecutionState::FallingIsland(_, _, _, _, _, _)
|
||||
|
|
Loading…
Reference in a new issue