Several crystals are rotating in circle, one of them has different color (can hide after certain of time). Hero must hit it with his sword. Afterwards another crystal lights up and speed can change, including reversing direction. Hit the correct crystal enough times to win. If wrong crystal was hit several times or limited time runs out, the challenge is failed.
1. Setup countdown combos for fail counter, like 3->2->1->0...
2. Set up 1 sprite for crystal, set SPR_ROT_MOLE ti ID of that sprite.
3. Place FFC in the center of the circle.
D0 - number of crystals, max 12.
D1 - Orbiting radius, in pixels.
D2 - Minimum rotating speed, negative to reverse direction.
D3 - Maximum orbiting speed.
D4 - Add together: 1 - skip expanding introduction, 2 - hide correct crystal after ROT_MOLE_HINT_RENDER_TIME frames passed, 4 - invert rotation after each hit.
D5 - Time limit, in frames. 0 for no time limit.
D6 - Number of succeful hits to win the minigame.
D7 - Number of failed hits before challenge is lost.