Datasets:
Download contracts/small/echo_three/rules.json from KRAFTON/A2Z-GameSpec-Bench: direct link, hf CLI and curl.
- Browser
- Download file 31.6 kB
-
https://huggingface.co/datasets/KRAFTON/A2Z-GameSpec-Bench/resolve/main/contracts/small/echo_three/rules.json
- Command line
-
hf download hf://datasets/KRAFTON/A2Z-GameSpec-Bench/contracts/small/echo_three/rules.json
-
curl -L -o rules.json https://huggingface.co/datasets/KRAFTON/A2Z-GameSpec-Bench/resolve/main/contracts/small/echo_three/rules.json
31.6 kB
| [ | |
| { | |
| "id": "I1", | |
| "label": "Correct non-final panel input", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Expected", | |
| "attribute": "expected", | |
| "operator": "==", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "panel mapped from the current KeyDown" | |
| } | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Index", | |
| "attribute": "index", | |
| "operator": "<", | |
| "value": 2 | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "==", | |
| "value": "Input" | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Paused", | |
| "attribute": "paused", | |
| "operator": "==", | |
| "value": false | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Input", | |
| "attribute": "keyDown", | |
| "operator": "==", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "an accepted key-down edge: a discrete key-down (OS key auto-repeat is ignored) that the debounce pre-filter did not drop, i.e. the same physical key had no accepted down within the previous DBT-18 = 40 ms" | |
| } | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "KeyDown" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Index", | |
| "attribute": "index", | |
| "operator": "INCREMENT", | |
| "value": 1 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Panel", | |
| "attribute": "state", | |
| "operator": "SET", | |
| "value": "CorrectHit" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "CorrectKeySoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "I1", | |
| "gdd_quote": "| I1 | key-down maps to panel `P`, `P == expected[k]`, and `k < 2` | correct: `RT-PANEL` P3 on `P`; `k += 1`; stay in `Input` |", | |
| "precondition": "key-down maps to panel `P`, `P == expected[k]`, and `k < 2`", | |
| "action": "Apply I1 under the stated condition and trigger.", | |
| "expected": "correct: `RT-PANEL` P3 on `P`; `k += 1`; stay in `Input`. `RT-INPUT` — resolves every input event during the `Input` phase, evaluated on each accepted key-down and on the timer tick. Debounce pre-filter, applied before I1–I3: drop a key-down whose same physical key had an accepted down within `DBT-18` = 40 ms. **Input model:** discrete key-down edges only; OS key auto-repeat ignored; per-key debounce `DBT-18`. During gameplay the arrow keys act as panel selects only (menus are not open), so no conflict occurs.", | |
| "evidence": "Index is set to its prior value plus one and correct-key events fire.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 202, | |
| "line_end": 202, | |
| "quote": "| I1 | key-down maps to panel `P`, `P == expected[k]`, and `k < 2` | correct: `RT-PANEL` P3 on `P`; `k += 1`; stay in `Input` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "I2", | |
| "label": "Correct final panel input", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Expected", | |
| "attribute": "expected", | |
| "operator": "==", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "panel mapped from the current KeyDown" | |
| } | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Index", | |
| "attribute": "index", | |
| "operator": "==", | |
| "value": 2 | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "==", | |
| "value": "Input" | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Paused", | |
| "attribute": "paused", | |
| "operator": "==", | |
| "value": false | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Input", | |
| "attribute": "keyDown", | |
| "operator": "==", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "an accepted key-down edge: a discrete key-down (OS key auto-repeat is ignored) that the debounce pre-filter did not drop, i.e. the same physical key had no accepted down within the previous DBT-18 = 40 ms" | |
| } | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "KeyDown" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Index", | |
| "attribute": "index", | |
| "operator": "INCREMENT", | |
| "value": 1 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "InputTimeMs", | |
| "attribute": "input_time_ms", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "the elapsed milliseconds from Input entry (V4) to this third correct key-down, used by the LED-2 speed bonus; the counting of time spent paused during Input toward it is not covered" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Panel", | |
| "attribute": "state", | |
| "operator": "SET", | |
| "value": "CorrectHit" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "CorrectKeySoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PatternCleared" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "I2", | |
| "gdd_quote": "| I2 | key-down maps to panel `P`, `P == expected[k]`, and `k == 2` | correct final: `RT-PANEL` P3 on `P`; record `input_time_ms`; resolve → `RT-ROUND` RR1 |", | |
| "precondition": "key-down maps to panel `P`, `P == expected[k]`, and `k == 2`", | |
| "action": "Apply I2 under the stated condition and trigger.", | |
| "expected": "correct final: `RT-PANEL` P3 on `P`; record `input_time_ms`; resolve → `RT-ROUND` RR1. `RT-INPUT` — resolves every input event during the `Input` phase, evaluated on each accepted key-down and on the timer tick. Debounce pre-filter, applied before I1–I3: drop a key-down whose same physical key had an accepted down within `DBT-18` = 40 ms. **Input model:** discrete key-down edges only; OS key auto-repeat ignored; per-key debounce `DBT-18`. During gameplay the arrow keys act as panel selects only (menus are not open), so no conflict occurs. **k:** count of correct inputs entered so far this round (0..3). Does not cover the counting of time spent paused during Input toward `input_time_ms`.", | |
| "evidence": "Input time is stored and correct/clear events fire.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 203, | |
| "line_end": 203, | |
| "quote": "| I2 | key-down maps to panel `P`, `P == expected[k]`, and `k == 2` | correct final: `RT-PANEL` P3 on `P`; record `input_time_ms`; resolve → `RT-ROUND` RR1 |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "RR1", | |
| "label": "Resolve cleared pattern", | |
| "preconditions": [], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "PatternCleared" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Gain", | |
| "attribute": "gain", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "the LED-2 gain of this clear, computed with the streak value after this rule's +1: speed_bonus = clamp(floor(DBT-20 (50) × (1 − input_time_ms / DBT-14 (4000 ms))), 0, 50); sum = DBT-19 (100) + speed_bonus; streak_mult = clamp(1.0 + DBT-21 (0.1) × (streak − 1), 1.0, DBT-22 (2.0)); gain = floor(sum × streak_mult)" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Feedback, with the phase banner reading \"CLEAR\", held for the clear hold DBT-15 = 600 ms; then InterGap" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Score", | |
| "attribute": "score", | |
| "operator": "SET", | |
| "value": { | |
| "expr": "min(score + gain, DBT-23)" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Streak", | |
| "attribute": "streak", | |
| "operator": "INCREMENT", | |
| "value": 1 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "GameSession", | |
| "attribute": "longest_streak", | |
| "operator": "SET", | |
| "value": { | |
| "expr": "max(longest_streak, streak)" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Verdict", | |
| "attribute": "verdict", | |
| "operator": "SET", | |
| "value": "CLEARED" | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Panel", | |
| "attribute": "state", | |
| "operator": "SET", | |
| "value": "ClearCelebrate" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PatternClearSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ClearConfettiVfxPlayedUnlessReducedMotion" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "RR1", | |
| "gdd_quote": "| RR1 | Clear (I2) | `streak += 1`; `longest_streak = max(longest_streak, streak)`; `gain = LED-2`; `score = min(score + gain, DBT-23)`; `results[pattern_index] = CLEARED`; `RT-PANEL` P6; banner \"CLEAR\"; clear SFX; hold `DBT-15`; → `InterGap` |", | |
| "precondition": "Clear (I2)", | |
| "action": "Apply RR1 under the stated condition and trigger.", | |
| "expected": "`streak += 1`; `longest_streak = max(longest_streak, streak)`; `gain = LED-2`; `score = min(score + gain, DBT-23)`; `results[pattern_index] = CLEARED`; `RT-PANEL` P6; banner \"CLEAR\"; clear SFX; hold `DBT-15`; → `InterGap`. Pattern clear (`RT-ROUND` RR1) | ascending bell arpeggio C–E–G, bright | green ripple + confetti. clear = green ripple + panel-colored confetti (20 squares, 12 px, `DBT-26` hues, 500 ms). **Reduced Motion:** disables screen shake, bloom, scale tweens, confetti, and the vignette pulse; substitutes rim-width and opacity changes (see Panel card, Round & Run card).", | |
| "evidence": "Clear state updates and events are produced.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 244, | |
| "line_end": 244, | |
| "quote": "| RR1 | Clear (I2) | `streak += 1`; `longest_streak = max(longest_streak, streak)`; `gain = LED-2`; `score = min(score + gain, DBT-23)`; `results[pattern_index] = CLEARED`; `RT-PANEL` P6; banner \"CLEAR\"; clear SFX; hold `DBT-15`; → `InterGap` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "RR2", | |
| "label": "Resolve wrong-input failure", | |
| "preconditions": [], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "PatternFailed" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Gain", | |
| "attribute": "gain", | |
| "operator": "SET", | |
| "value": 0 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Feedback, with the phase banner reading \"MISS\", held for the fail hold DBT-16 = 900 ms; then InterGap" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Streak", | |
| "attribute": "streak", | |
| "operator": "SET", | |
| "value": 0 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Verdict", | |
| "attribute": "verdict", | |
| "operator": "SET", | |
| "value": "FAILED" | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Panel", | |
| "attribute": "state", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "WrongHit (RT-PANEL P4) on the wrong panel P that took the key, ExpectedPulse (RT-PANEL P5) on the panel expected[k] that was still needed, and FailDim (RT-PANEL P7: desaturated to 60% gray for the fail hold) on the remaining panel" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "WrongKeySoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PatternFailSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "FailVignetteOrBorderVfxPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "RR2", | |
| "gdd_quote": "| RR2 | Fail-wrong (I3) | `streak = 0`; `gain = 0`; `results[pattern_index] = FAILED`; `RT-PANEL` P4 on wrong panel + P5 on `expected[k]`; banner \"MISS\"; buzz SFX; hold `DBT-16`; → `InterGap` |", | |
| "precondition": "Fail-wrong (I3)", | |
| "action": "Apply RR2 under the stated condition and trigger.", | |
| "expected": "`streak = 0`; `gain = 0`; `results[pattern_index] = FAILED`; `RT-PANEL` P4 on wrong panel + P5 on `expected[k]`; banner \"MISS\"; buzz SFX; hold `DBT-16`; → `InterGap`. Pattern fail (`RT-ROUND` RR2/RR3) | short descending minor two-note \"womp\" | fail-dim + red vignette/border. fail = fail-dim + red edge vignette pulse 400 ms (vignette omitted under Reduced Motion, replaced by a static 6 px red screen border).", | |
| "evidence": "Failure updates and cues are produced.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 245, | |
| "line_end": 245, | |
| "quote": "| RR2 | Fail-wrong (I3) | `streak = 0`; `gain = 0`; `results[pattern_index] = FAILED`; `RT-PANEL` P4 on wrong panel + P5 on `expected[k]`; banner \"MISS\"; buzz SFX; hold `DBT-16`; → `InterGap` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "RR3", | |
| "label": "Resolve timeout failure", | |
| "preconditions": [], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "Timeout" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Gain", | |
| "attribute": "gain", | |
| "operator": "SET", | |
| "value": 0 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Feedback, with the phase banner reading \"TIME\", held for the fail hold DBT-16 = 900 ms; then InterGap" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Streak", | |
| "attribute": "streak", | |
| "operator": "SET", | |
| "value": 0 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Verdict", | |
| "attribute": "verdict", | |
| "operator": "SET", | |
| "value": "FAILED" | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Panel", | |
| "attribute": "state", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "ExpectedPulse (RT-PANEL P5) on the panel expected[k] that was still needed, and FailDim (RT-PANEL P7) on the other panels" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "TimeoutSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PatternFailSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "FailVignetteOrBorderVfxPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "RR3", | |
| "gdd_quote": "| RR3 | Fail-timeout (I5) | `streak = 0`; `gain = 0`; `results[pattern_index] = FAILED`; `RT-PANEL` P5 on `expected[k]` + P7 dim others; banner \"TIME\"; buzz+tick-stop SFX; hold `DBT-16`; → `InterGap` |", | |
| "precondition": "Fail-timeout (I5)", | |
| "action": "Apply RR3 under the stated condition and trigger.", | |
| "expected": "`streak = 0`; `gain = 0`; `results[pattern_index] = FAILED`; `RT-PANEL` P5 on `expected[k]` + P7 dim others; banner \"TIME\"; buzz+tick-stop SFX; hold `DBT-16`; → `InterGap`. Pattern fail (`RT-ROUND` RR2/RR3) | short descending minor two-note \"womp\" | fail-dim + red vignette/border. fail = fail-dim + red edge vignette pulse 400 ms (vignette omitted under Reduced Motion, replaced by a static 6 px red screen border).", | |
| "evidence": "Timeout-failure updates and cues are produced.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 246, | |
| "line_end": 246, | |
| "quote": "| RR3 | Fail-timeout (I5) | `streak = 0`; `gain = 0`; `results[pattern_index] = FAILED`; `RT-PANEL` P5 on `expected[k]` + P7 dim others; banner \"TIME\"; buzz+tick-stop SFX; hold `DBT-16`; → `InterGap` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "I5", | |
| "label": "Input window timeout", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "==", | |
| "value": "Input" | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Index", | |
| "attribute": "index", | |
| "operator": "<", | |
| "value": 3 | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Timer", | |
| "attribute": "timer", | |
| "operator": ">=", | |
| "value": "DBT-14" | |
| } | |
| ], | |
| "trigger": null, | |
| "effects": [ | |
| { | |
| "type": "EventEmission", | |
| "name": "Timeout" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "I5", | |
| "gdd_quote": "| I5 | input-window timer reaches `DBT-14` while `k < 3` | timeout: resolve → `RT-ROUND` RR3 |", | |
| "precondition": "input-window timer reaches `DBT-14` while `k < 3`", | |
| "action": "Apply I5 under the stated condition and trigger.", | |
| "expected": "timeout: resolve → `RT-ROUND` RR3. `RT-INPUT` — resolves every input event during the `Input` phase, evaluated on each accepted key-down and on the timer tick.", | |
| "evidence": "Observe I5's encoded outcomes.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 206, | |
| "line_end": 206, | |
| "quote": "| I5 | input-window timer reaches `DBT-14` while `k < 3` | timeout: resolve → `RT-ROUND` RR3 |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "RN1", | |
| "label": "Advance to next pattern", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "GameSession", | |
| "attribute": "pattern_index", | |
| "operator": "<", | |
| "value": 9 | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "InterGapElapsed" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "GameSession", | |
| "attribute": "pattern_index", | |
| "operator": "INCREMENT", | |
| "value": 1 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": "LeadIn" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PatternAdvanceSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "WatchBannerSoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "RN1", | |
| "gdd_quote": "| RN1 | `pattern_index < DBT-9 − 1` (i.e., < 9) | `pattern_index += 1`; → `LeadIn` |", | |
| "precondition": "`pattern_index < DBT-9 − 1` (i.e., < 9)", | |
| "action": "Apply RN1 under the stated condition and trigger.", | |
| "expected": "`pattern_index += 1`; → `LeadIn`. `RT-RUN` — routes after `InterGap`; `pattern_index` is the just-resolved index (0..9).", | |
| "evidence": "Pattern index is set to its prior value plus one and LeadIn is produced.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 254, | |
| "line_end": 254, | |
| "quote": "| RN1 | `pattern_index < DBT-9 − 1` (i.e., < 9) | `pattern_index += 1`; → `LeadIn` |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "RN2", | |
| "label": "Complete run and save best", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "GameSession", | |
| "attribute": "pattern_index", | |
| "operator": "==", | |
| "value": 9 | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "InterGapElapsed" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "BestDaily", | |
| "attribute": "best_daily", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Daily mode only: if last_daily_date differs from today's local date (YYYYMMDD), best_daily is first reset to 0; then, if score > best_daily, best_daily = score, otherwise it keeps its value. In Play mode best_daily is unchanged" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "BestNormal", | |
| "attribute": "best_normal", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Play mode only: if score > best_normal, best_normal = score, otherwise it keeps its value. In Daily mode best_normal is unchanged" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "LastDailyDate", | |
| "attribute": "last_daily_date", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "Daily mode only: set to today's local date (YYYYMMDD) when it differed from it, before the score comparison; otherwise, and in Play mode, unchanged" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": "Results" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "ResultsTallySoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "RunCompleteSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "NewBestSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "NewBestBannerShown" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "NewBestBellLineSoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "RN2", | |
| "gdd_quote": "| RN2 | `pattern_index == DBT-9 − 1` (i.e., == 9) | → `Results`; save best (Save Data) |", | |
| "precondition": "`pattern_index == DBT-9 − 1` (i.e., == 9)", | |
| "action": "Apply RN2 under the stated condition and trigger.", | |
| "expected": "→ `Results`; save best (Save Data). `RT-RUN` — routes after `InterGap`; `pattern_index` is the just-resolved index (0..9). Results shows \"NEW BEST!\" when RN2 updated it. Results \"Tally\" | crossfade 500 ms from Focus on `Results` entry (RN2) | warm electric piano + pad | chord walk C–G–Am–F; if new best, add a bright bell counter-line | 90 BPM, loop. NewBestSoundPlayed (the new-best sparkle), NewBestBannerShown (the \"NEW BEST!\" readout on Results) and NewBestBellLineSoundPlayed (the bright bell counter-line added to the Results Tally BGM) occur only when this Results entry raised the just-played mode's best: score > `best_normal` in Play mode, or score > `best_daily` after any new-day reset in Daily mode.", | |
| "evidence": "Best values and Results phase are set.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 255, | |
| "line_end": 255, | |
| "quote": "| RN2 | `pattern_index == DBT-9 − 1` (i.e., == 9) | → `Results`; save best (Save Data) |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "PA1", | |
| "label": "Pause an active round", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Paused", | |
| "attribute": "paused", | |
| "operator": "==", | |
| "value": false | |
| }, | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "IN", | |
| "value": [ | |
| "LeadIn", | |
| "Watch", | |
| "PreInput", | |
| "Input", | |
| "Resolve", | |
| "Feedback" | |
| ] | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "PauseToggled" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Paused", | |
| "attribute": "paused", | |
| "operator": "SET", | |
| "value": true | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Timer", | |
| "attribute": "timer", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "frozen: the current phase clock (during Watch, the playback clock and the current cue mid-flash) and the input-window timer stop advancing and keep their current values while paused" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseOpenSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseMusicDucked" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "PA1", | |
| "gdd_quote": "| PA1 | Pause key (Esc keyboard / Start gamepad, Input Map) pressed during a round phase `LeadIn`/`Watch`/`PreInput`/`Input`/`Resolve`/`Feedback`, not paused | freeze current phase clock + input timer; show pause overlay; open SFX |", | |
| "precondition": "Pause key (Esc keyboard / Start gamepad, Input Map) pressed during a round phase `LeadIn`/`Watch`/`PreInput`/`Input`/`Resolve`/`Feedback`, not paused", | |
| "action": "Apply PA1 under the stated condition and trigger.", | |
| "expected": "freeze current phase clock + input timer; show pause overlay; open SFX. pause open = low pad swell; close = reversed swell; BGM ducks −8 dB while paused. Does not cover the combination of this duck with the −12 dB `Watch` duck when the pause begins during `Watch`.", | |
| "evidence": "Timer is captured and open cue fires.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 322, | |
| "line_end": 322, | |
| "quote": "| PA1 | Pause key (Esc keyboard / Start gamepad, Input Map) pressed during a round phase `LeadIn`/`Watch`/`PreInput`/`Input`/`Resolve`/`Feedback`, not paused | freeze current phase clock + input timer; show pause overlay; open SFX |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "PA2", | |
| "label": "Resume paused round", | |
| "preconditions": [ | |
| { | |
| "type": "StatePredicate", | |
| "entity": "Paused", | |
| "attribute": "paused", | |
| "operator": "==", | |
| "value": true | |
| } | |
| ], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "ResumeRequested" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Paused", | |
| "attribute": "paused", | |
| "operator": "SET", | |
| "value": false | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Timer", | |
| "attribute": "timer", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "resumed: the phase clock, the current Watch cue and the input-window timer continue from exactly the values frozen at pause, for their remaining time" | |
| } | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseCloseSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseMusicDuckReleased" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "PA2", | |
| "gdd_quote": "| PA2 | Resume chosen (or Pause key while paused) | close overlay; resume the exact frozen clock/cue; close SFX |", | |
| "precondition": "Resume chosen (or Pause key while paused)", | |
| "action": "Apply PA2 under the stated condition and trigger.", | |
| "expected": "close overlay; resume the exact frozen clock/cue; close SFX. pause open = low pad swell; close = reversed swell; BGM ducks −8 dB while paused.", | |
| "evidence": "Timer is re-established and close cue fires.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 323, | |
| "line_end": 323, | |
| "quote": "| PA2 | Resume chosen (or Pause key while paused) | close overlay; resume the exact frozen clock/cue; close SFX |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "PA3", | |
| "label": "Restart current run", | |
| "preconditions": [], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "RestartRunChosen" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Seed", | |
| "attribute": "seed", | |
| "operator": "SET", | |
| "value": { | |
| "expr": "new Play seed / same Daily seed" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Draws", | |
| "attribute": "draws", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "regenerated for the new run: the 30-draw stream (DBT-32, Pattern card) generated from the new run's seed" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "GameSession", | |
| "attribute": "pattern_index", | |
| "operator": "SET", | |
| "value": 0 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Score", | |
| "attribute": "score", | |
| "operator": "SET", | |
| "value": 0 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Streak", | |
| "attribute": "streak", | |
| "operator": "SET", | |
| "value": 0 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "GameSession", | |
| "attribute": "longest_streak", | |
| "operator": "SET", | |
| "value": 0 | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Verdict", | |
| "attribute": "verdict", | |
| "operator": "SET", | |
| "value": { | |
| "kind": "opaque", | |
| "description": "UNPLAYED in every entry of results[0..9]: no pattern of the new run has resolved yet" | |
| } | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Paused", | |
| "attribute": "paused", | |
| "operator": "SET", | |
| "value": false | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": "LeadIn" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "GameplayFocusSoundPlayed" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "PauseMusicDuckReleased" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "PA3", | |
| "gdd_quote": "| PA3 | Restart Run chosen | discard current run; new `S0` (same mode, new Play seed / same Daily seed) |", | |
| "precondition": "Restart Run chosen", | |
| "action": "Apply PA3 under the stated condition and trigger.", | |
| "expected": "discard current run; new `S0` (same mode, new Play seed / same Daily seed). **Run start (`S0`):** pick seed by mode (`DBT-33`, `LED-7`), generate the 30-draw stream (`DBT-32`, Pattern card), set `pattern_index = 0`, `score = 0`, `streak = 0`, `longest_streak = 0`, `results[0..9] = UNPLAYED`. Enter `LeadIn`. BGM ducks −8 dB while paused.", | |
| "evidence": "Seed/state reset and session-start events are produced.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 324, | |
| "line_end": 324, | |
| "quote": "| PA3 | Restart Run chosen | discard current run; new `S0` (same mode, new Play seed / same Daily seed) |" | |
| } | |
| } | |
| }, | |
| { | |
| "id": "PA4", | |
| "label": "Quit run to title", | |
| "preconditions": [], | |
| "trigger": { | |
| "type": "Event", | |
| "name": "QuitToTitleChosen" | |
| }, | |
| "effects": [ | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Paused", | |
| "attribute": "paused", | |
| "operator": "SET", | |
| "value": false | |
| }, | |
| { | |
| "type": "StateUpdate", | |
| "entity": "Phase", | |
| "attribute": "phase", | |
| "operator": "SET", | |
| "value": "Title" | |
| }, | |
| { | |
| "type": "EventEmission", | |
| "name": "MenuStandbySoundPlayed" | |
| } | |
| ], | |
| "provenance": { | |
| "mechanic": "PA4", | |
| "gdd_quote": "| PA4 | Quit to Title chosen | discard run (no best save); → Title |", | |
| "precondition": "Quit to Title chosen", | |
| "action": "Apply PA4 under the stated condition and trigger.", | |
| "expected": "discard run (no best save); → Title", | |
| "evidence": "State becomes Title and menu cue fires.", | |
| "source": { | |
| "file": "gdds/small/echo_three.md", | |
| "line_start": 325, | |
| "line_end": 325, | |
| "quote": "| PA4 | Quit to Title chosen | discard run (no best save); → Title |" | |
| } | |
| } | |
| } | |
| ] | |