Challenges Chao Key usage: Eggman numbers to REALLY drive home that you have to hold the button, and that you can release it early

This commit is contained in:
toaster 2023-08-10 00:27:15 +01:00
parent 19e73f4fe3
commit 9a35a39f5d
3 changed files with 7 additions and 1 deletions

View file

@ -162,7 +162,7 @@ static patch_t *kp_localtag[4][2];
static patch_t *kp_talk;
static patch_t *kp_typdot;
static patch_t *kp_eggnum[6];
patch_t *kp_eggnum[6];
static patch_t *kp_flameshieldmeter[FLAMESHIELD_MAX][2];
static patch_t *kp_flameshieldmeter_bg[FLAMESHIELD_MAX][2];

View file

@ -75,6 +75,8 @@ extern patch_t *kp_button_down[2];
extern patch_t *kp_button_right[2];
extern patch_t *kp_button_left[2];
extern patch_t *kp_eggnum[6];
#ifdef __cplusplus
} // extern "C"
#endif

View file

@ -5988,6 +5988,10 @@ challengedesc:
keyholdrotation = 360 * ((challengesmenu.chaokeyhold - CHAOHOLD_BEGIN))
* (FRACUNIT/(CHAOHOLD_MAX - (CHAOHOLD_BEGIN + CHAOHOLD_END)));
INT32 time = 3 - (keyholdrotation - 1) / (90 * FRACUNIT);
if (time <= 5 && time >= 0)
V_DrawScaledPatch(selectx + 2, selecty - 2, 0, kp_eggnum[time]);
}
else
{