Smooth scale-up

This commit is contained in:
Sally Coolatta 2022-11-17 22:46:26 -05:00
parent 31046f0390
commit 5f20d5a3ac
3 changed files with 5 additions and 2 deletions

View file

@ -1606,7 +1606,8 @@ static void K_DrawKartPositionNum(INT32 num)
if (stplyr->positiondelay || stplyr->exiting)
{
scale *= 2;
UINT8 delay = (stplyr->exiting) ? POS_DELAY_TIME : stplyr->positiondelay;
scale += min((scale * (delay * delay)) / (POS_DELAY_TIME * POS_DELAY_TIME), scale);
}
// pain and suffering defined below

View file

@ -19,6 +19,8 @@
#define RINGANIM_NUMFRAMES 10
#define RINGANIM_DELAYMAX 5
#define POS_DELAY_TIME 10
void K_AdjustXYWithSnap(INT32 *x, INT32 *y, UINT32 options, INT32 dupx, INT32 dupy);
typedef struct trackingResult_s

View file

@ -9867,7 +9867,7 @@ void K_KartUpdatePosition(player_t *player)
if (position < oldposition) // Changed places?
{
player->positiondelay = 10; // Position number growth
player->positiondelay = POS_DELAY_TIME + 4; // Position number growth
}
/* except in FREE PLAY */