From 84314221b8e0b449e3b67fe53c51443e8dbf89ae Mon Sep 17 00:00:00 2001 From: doyle Date: Mon, 16 Oct 2023 15:51:21 +1100 Subject: [PATCH] fp: Change strafe to L, browsers respond to spacebar by scrolling the page ... --- External/tely | 2 +- feely_pona.cpp | 8 ++++---- project.rdbg | Bin 2127 -> 2153 bytes 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/External/tely b/External/tely index 8ea3522..e2d184e 160000 --- a/External/tely +++ b/External/tely @@ -1 +1 @@ -Subproject commit 8ea35229fb85922d48140e335de1ad5d9c1a64bc +Subproject commit e2d184ebe0e7b857770f17d279829606a405588f diff --git a/feely_pona.cpp b/feely_pona.cpp index f484e50..e4ca5de 100644 --- a/feely_pona.cpp +++ b/feely_pona.cpp @@ -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) diff --git a/project.rdbg b/project.rdbg index c8ed252ba12ea8f85a2bb67b167de0463a895575..563a6db6131221b06e74d0ede893586055dd4e87 100644 GIT binary patch delta 257 zcmX>v@KRucE2HCNMJB7s{;XV+6_~6ibFjK|B^MMVm1gFo=w(b^$ZEjo1yrCpF<)S^ z3yTP&JxDc6QetuHAijvf#yu_TzJj{BNA2R7P+JQ7oKFK68*?>`favzf* zP?`JWMrN&v`J9t^nS_Cg)H#bwQgSkr^fDj@<|dY8Ox9tvVKfElLo+P|4izWV_5_l?ID8lll53Q7_}!ct81SUPWhRG33Jd9A|