easter-egg-quest 1.0.21 → 1.0.23
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.
- package/dist/easter-egg-quest.es.js +111 -52
- package/dist/easter-egg-quest.umd.js +1 -1
- package/dist/types/rendering/PageBreather.d.ts +4 -4
- package/dist/types/rendering/ThreeRenderer.d.ts +1 -0
- package/dist/types/scoring/Persistence.d.ts +2 -0
- package/dist/types/stages/RhythmStage.d.ts +2 -0
- package/package.json +1 -1
|
@@ -14,15 +14,15 @@ export declare class PageBreather {
|
|
|
14
14
|
private _targetIntensity;
|
|
15
15
|
private _rafId;
|
|
16
16
|
private _overlay;
|
|
17
|
-
private _label;
|
|
18
17
|
private _startTime;
|
|
19
18
|
private _isUserMoving;
|
|
20
19
|
private _inSync;
|
|
21
20
|
private _accuracy;
|
|
22
|
-
|
|
23
|
-
private
|
|
21
|
+
private _targetPhase;
|
|
22
|
+
private _phaseMatch;
|
|
23
|
+
private _signal;
|
|
24
24
|
start(): void;
|
|
25
|
-
update(accuracy: number, isMoving: boolean): void;
|
|
25
|
+
update(accuracy: number, isMoving: boolean, targetPhase: 'move' | 'still', phaseMatch: boolean, signal: number): void;
|
|
26
26
|
/** Whether the user is currently in sync with the breathing rhythm. */
|
|
27
27
|
isInSync(): boolean;
|
|
28
28
|
stop(): void;
|
|
@@ -81,6 +81,7 @@ export declare class ThreeRenderer {
|
|
|
81
81
|
addTrail(x: number, y: number, velocity: number): void;
|
|
82
82
|
/** Spawn ambient particles to show stage progress. */
|
|
83
83
|
showProgressParticles(progress: number, source?: 'default' | 'rhythm'): void;
|
|
84
|
+
burstRhythmParticles(progress: number, cycles: number): void;
|
|
84
85
|
/** Mark all ambient particles for rapid fade-out (rhythm lost). */
|
|
85
86
|
fadeOutAmbientParticles(): void;
|
|
86
87
|
/** Start the finale composition. */
|
|
@@ -17,6 +17,8 @@ export declare class Persistence {
|
|
|
17
17
|
saveProgress(data: ProgressCheckpoint): void;
|
|
18
18
|
loadProgress(): ProgressCheckpoint | null;
|
|
19
19
|
clearProgress(): void;
|
|
20
|
+
markCompleted(): void;
|
|
21
|
+
isCompleted(): boolean;
|
|
20
22
|
}
|
|
21
23
|
export interface ProgressCheckpoint {
|
|
22
24
|
stage: GameStage;
|
|
@@ -27,6 +27,7 @@ export declare class RhythmStage implements StageHandler {
|
|
|
27
27
|
private _lastPhaseCount;
|
|
28
28
|
private _bestAccuracy;
|
|
29
29
|
private _lastGuideTime;
|
|
30
|
+
private _lastGoodCycleAt;
|
|
30
31
|
/** Broad move duration range (ms), tuned for natural mouse/touch rhythm. */
|
|
31
32
|
private readonly IDEAL_MOVE_MIN;
|
|
32
33
|
private readonly IDEAL_MOVE_MAX;
|
|
@@ -40,6 +41,7 @@ export declare class RhythmStage implements StageHandler {
|
|
|
40
41
|
getResult(): StageResult;
|
|
41
42
|
private _evaluateCycle;
|
|
42
43
|
private _getLiveConfidence;
|
|
44
|
+
private _getTargetPhase;
|
|
43
45
|
private _scoreDuration;
|
|
44
46
|
private _showReaction;
|
|
45
47
|
private _wait;
|
package/package.json
CHANGED