INNER CODE UNIT · C

angle

GalaxyShad/Zuma-Deluxe-HD · src/zuma/BallChain.c:406

        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);
        HQC_Artist_DrawSetAlpha(alpha);
        HQC_Artist_DrawAnimation(ball->animation, pos.x, pos.y);
        HQC_Artist_DrawSetAlpha(1);
        HQC_Artist_DrawSetAngle(0);
    }

    HQC_Artist_DrawTextF(Store_GetFontByID(FONT_CANCUN_8), pos.x, pos.y, "%p", ball);
}


///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

HBallChain BallChain_Create(HLevel level, HBulletList bulletList) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…