mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Smooth scale-up
This commit is contained in:
parent
31046f0390
commit
5f20d5a3ac
3 changed files with 5 additions and 2 deletions
|
|
@ -1606,7 +1606,8 @@ static void K_DrawKartPositionNum(INT32 num)
|
||||||
|
|
||||||
if (stplyr->positiondelay || stplyr->exiting)
|
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
|
// pain and suffering defined below
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,8 @@
|
||||||
#define RINGANIM_NUMFRAMES 10
|
#define RINGANIM_NUMFRAMES 10
|
||||||
#define RINGANIM_DELAYMAX 5
|
#define RINGANIM_DELAYMAX 5
|
||||||
|
|
||||||
|
#define POS_DELAY_TIME 10
|
||||||
|
|
||||||
void K_AdjustXYWithSnap(INT32 *x, INT32 *y, UINT32 options, INT32 dupx, INT32 dupy);
|
void K_AdjustXYWithSnap(INT32 *x, INT32 *y, UINT32 options, INT32 dupx, INT32 dupy);
|
||||||
|
|
||||||
typedef struct trackingResult_s
|
typedef struct trackingResult_s
|
||||||
|
|
|
||||||
|
|
@ -9867,7 +9867,7 @@ void K_KartUpdatePosition(player_t *player)
|
||||||
|
|
||||||
if (position < oldposition) // Changed places?
|
if (position < oldposition) // Changed places?
|
||||||
{
|
{
|
||||||
player->positiondelay = 10; // Position number growth
|
player->positiondelay = POS_DELAY_TIME + 4; // Position number growth
|
||||||
}
|
}
|
||||||
|
|
||||||
/* except in FREE PLAY */
|
/* except in FREE PLAY */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue