easter-egg-quest 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -35,6 +35,7 @@ export declare class ThreeRenderer {
|
|
|
35
35
|
private _greetingOverlay;
|
|
36
36
|
private _trailParticles;
|
|
37
37
|
private _ambientParticles;
|
|
38
|
+
private _lastAmbientSpawnAt;
|
|
38
39
|
private _revealParticles;
|
|
39
40
|
private _disposed;
|
|
40
41
|
private _interactiveEgg;
|
|
@@ -78,8 +79,8 @@ export declare class ThreeRenderer {
|
|
|
78
79
|
resetForRestart(): void;
|
|
79
80
|
/** Add a luminous motion trail at screen coordinates. */
|
|
80
81
|
addTrail(x: number, y: number, velocity: number): void;
|
|
81
|
-
/** Spawn
|
|
82
|
-
showProgressParticles(progress: number): void;
|
|
82
|
+
/** Spawn ambient particles to show stage progress. */
|
|
83
|
+
showProgressParticles(progress: number, source?: 'default' | 'rhythm'): void;
|
|
83
84
|
/** Mark all ambient particles for rapid fade-out (rhythm lost). */
|
|
84
85
|
fadeOutAmbientParticles(): void;
|
|
85
86
|
/** Start the finale composition. */
|
|
@@ -6,7 +6,8 @@ import type { EventBus } from '../core/EventBus';
|
|
|
6
6
|
*
|
|
7
7
|
* Synthesizes stillness and motion. The user must alternate between
|
|
8
8
|
* moving and pausing in a natural rhythm. Neither pure stillness nor
|
|
9
|
-
* pure constant motion works. The ideal cycle is
|
|
9
|
+
* pure constant motion works. The ideal cycle is broad and forgiving:
|
|
10
|
+
* roughly 1-4 s move, then 0.8-3 s pause.
|
|
10
11
|
*
|
|
11
12
|
* When the user's rhythm approaches coherence, the page "breathes" in sync.
|
|
12
13
|
*/
|
|
@@ -26,10 +27,10 @@ export declare class RhythmStage implements StageHandler {
|
|
|
26
27
|
private _lastPhaseCount;
|
|
27
28
|
private _bestAccuracy;
|
|
28
29
|
private _lastGuideTime;
|
|
29
|
-
/**
|
|
30
|
+
/** Broad move duration range (ms), tuned for natural mouse/touch rhythm. */
|
|
30
31
|
private readonly IDEAL_MOVE_MIN;
|
|
31
32
|
private readonly IDEAL_MOVE_MAX;
|
|
32
|
-
/**
|
|
33
|
+
/** Broad pause duration range (ms). */
|
|
33
34
|
private readonly IDEAL_PAUSE_MIN;
|
|
34
35
|
private readonly IDEAL_PAUSE_MAX;
|
|
35
36
|
constructor(config: ResolvedConfig, script: NarrativeScript, input: InputTracker, bus: EventBus);
|
|
@@ -38,6 +39,8 @@ export declare class RhythmStage implements StageHandler {
|
|
|
38
39
|
cleanup(): void;
|
|
39
40
|
getResult(): StageResult;
|
|
40
41
|
private _evaluateCycle;
|
|
42
|
+
private _getLiveConfidence;
|
|
43
|
+
private _scoreDuration;
|
|
41
44
|
private _showReaction;
|
|
42
45
|
private _wait;
|
|
43
46
|
private _showAndConfirm;
|
package/package.json
CHANGED