INNER CODE UNIT · C

pointRight

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

        v2f_t pointRight = Level_GetCurveCoords(ball->chain->level, ball->pos + BALL_RADIUS);

        float distanceLeft  = HQC_PointDistance(bulletPos.x, bulletPos.y, pointLeft.x, pointLeft.y);
        float distanceRight = HQC_PointDistance(bulletPos.x, bulletPos.y, pointRight.x, pointRight.y);

        Bullet_SetInsertion(bullet, ball, (distanceRight < distanceLeft));

        HQC_DJ_PlaySound(Store_GetSoundByID(SND_BALLCLICK2));
    }
}


static void Ball_HandleBulletListCollision__(Ball* ball) {
    for (int i = 0; i < 8; i++) {
        Ball_HandleBulletCollision__(ball, BulletList_GetBullet(ball->chain->bulletList, i));
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…