INNER CODE UNIT · C
Ball_IsCollidingBack__
GalaxyShad/Zuma-Deluxe-HD · src/zuma/BallChain.c:101
static bool Ball_IsCollidingBack__(Ball* ball, float expand) {
if (ball->prev == NULL)
return false;
return (ball->prev->pos + 32 + expand >= ball->pos);
}
static bool Ball_IsCollidingFront__(Ball* ball) {
if (ball->next == NULL)
return false;
return (ball->next->pos - 32 <= ball->pos);
}
static uint32_t Ball_GetColorUint32__(Ball* ball) {
switch (ball->color) {
case BALL_BLUE: return 0x00FEFD;