fp: Change strafe to L, browsers respond to spacebar by scrolling the page ...
This commit is contained in:
Vendored
+1
-1
Submodule External/tely updated: 8ea35229fb...e2d184ebe0
+4
-4
@@ -722,7 +722,7 @@ void FP_EntityActionStateMachine(FP_Game *game, TELY_Audio *audio, TELY_Platform
|
||||
}
|
||||
|
||||
if (FP_Game_IsNilEntityHandle(game, entity->carried_monkey)) {
|
||||
if (TELY_Platform_InputScanCodeIsPressed(input, TELY_PlatformInputScanCode_LeftControl) ||
|
||||
if (TELY_Platform_InputScanCodeIsPressed(input, TELY_PlatformInputScanCode_N) ||
|
||||
TELY_Platform_InputGamepadKeyIsPressed(input, 0, TELY_PlatformInputGamepadKey_A)) {
|
||||
FP_Game_EntityTransitionState(game, entity, FP_EntityTerryState_Dash);
|
||||
}
|
||||
@@ -1531,8 +1531,8 @@ void FP_Update(TELY_Platform *platform, FP_Game *game, TELY_PlatformInput *input
|
||||
|
||||
if (move_entity) {
|
||||
acceleration_meters_per_s = dir_vector * entity->base_acceleration_per_s.meters;
|
||||
if (TELY_Platform_InputScanCodeIsDown(input, TELY_PlatformInputScanCode_Space))
|
||||
acceleration_meters_per_s *= 2.5f;
|
||||
// if (TELY_Platform_InputScanCodeIsDown(input, TELY_PlatformInputScanCode_Space))
|
||||
// acceleration_meters_per_s *= 2.5f;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -2053,7 +2053,7 @@ void FP_Update(TELY_Platform *platform, FP_Game *game, TELY_PlatformInput *input
|
||||
}
|
||||
|
||||
// NOTE: Left-shift lets us strafe in the same direction
|
||||
if (!TELY_Platform_InputScanCodeIsDown(input, TELY_PlatformInputScanCode_LeftShift)) {
|
||||
if (!TELY_Platform_InputScanCodeIsDown(input, TELY_PlatformInputScanCode_L)) {
|
||||
if (acceleration_meters_per_s.x)
|
||||
entity->direction = acceleration_meters_per_s.x > 0.f ? FP_GameDirection_Right : FP_GameDirection_Left;
|
||||
else if (acceleration_meters_per_s.y)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user