INNER CODE UNIT · C
Ball_Draw__
GalaxyShad/Zuma-Deluxe-HD · src/zuma/BallChain.c:387
static void Ball_Draw__(Ball* ball) {
if (!ball) return;
if (ball->pos < 0.0) return;
v2f_t pos = Level_GetCurveCoords(ball->chain->level, ball->pos);
v2f_t posNext = Level_GetCurveCoords(ball->chain->level, ball->pos+1);
if (ball->isExploding) {
HQC_Animation_Tick(ball->animation);
uint32_t color = Ball_GetColorUint32__(ball);
HQC_Artist_SetDrawColorMod(color);
HQC_Artist_DrawAnimation(ball->animation, pos.x, pos.y);
HQC_Artist_SetDrawColorMod(C_WHITE);
} else {
HQC_Animation_SetFrame(ball->animation, ((int) ball->pos) % HQC_Animation_FramesCount(ball->animation));