1
0
Fork 0
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:
dawnDus 2022-08-06 12:44:14 -04:00
parent f1542246c6
commit 81755d4ad9
No known key found for this signature in database
GPG key ID: 972AABDE81848F21
2 changed files with 9 additions and 2 deletions

View file

@ -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;

View file

@ -1772,6 +1772,7 @@ impl Scene for GameScene {
TextScriptExecutionState::Running(_, _)
| TextScriptExecutionState::WaitTicks(_, _, _)
| TextScriptExecutionState::WaitInput(_, _, _)
| TextScriptExecutionState::WaitStanding(_, _)
| TextScriptExecutionState::Msg(_, _, _, _)
| TextScriptExecutionState::MsgNewLine(_, _, _, _, _)
| TextScriptExecutionState::FallingIsland(_, _, _, _, _, _)