INNER CODE UNIT · C
posNext
GalaxyShad/Zuma-Deluxe-HD · src/zuma/BallChain.c:392
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));
float angle = HQC_FAtan2(pos.y - posNext.y, pos.x - posNext.x) + M_PI_2;
float alpha = HQC_FMin(ball->pos / 32.f, 1.f);
HQC_Artist_DrawSetAngle(angle);