INNER CODE UNIT · C

Ball_IsCollidingFront__

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

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;
        case BALL_GREEN:    return 0x00FA44;
        case BALL_YELLOW:   return 0xFDFD06;
        case BALL_RED:      return 0xF96F4C;
        case BALL_PURPLE:   return 0xFD88F8;
        case BALL_GRAY:     return 0xFDEABB;

        default:            return 0;
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…