Easing tests.

This commit is contained in:
2021-07-15 04:38:31 -07:00
parent 6a1b370550
commit 2ebdf0e8fb
3 changed files with 33 additions and 3 deletions

View File

@ -27,7 +27,8 @@ void pokerMatchInit(poker_t *poker, engine_t *engine) {
}
void pokerMatchUpdate(poker_t *poker, engine_t *engine) {
// float matchDiff = poker->matchStart - engine->time.current;
float diff = engine->time.current - poker->roundMatch.time;
pokerLookAtPlayer(&poker->cameraWorld, POKER_SEAT_PLAYER0, 3 - (diff/2));
pokerLookAtPlayer(
&poker->cameraWorld, POKER_SEAT_PLAYER0,
easeOutCubic(easeTimeToEase(poker->roundMatch.time,engine->time.current,5))
);
}