@idle-screens/saver-metaquarium 0.7.2 → 0.8.0
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/README.md +10 -0
- package/dist/{chunk-RTUYWDDZ.js → chunk-BX2S4OKL.js} +1 -1
- package/dist/{chunk-RTUYWDDZ.js.map → chunk-BX2S4OKL.js.map} +1 -1
- package/dist/chunk-SVSN7ETN.js +41 -0
- package/dist/chunk-SVSN7ETN.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/lofi-tank-ZPGVXG7U.js +504 -0
- package/dist/lofi-tank-ZPGVXG7U.js.map +1 -0
- package/dist/{manifest-C25MXGwc.d.ts → manifest-B166cOEM.d.ts} +5 -0
- package/dist/manifest.d.ts +1 -1
- package/dist/manifest.js +1 -1
- package/dist/{tank-BLHLRKT2.js → tank-G7B4NL3F.js} +8 -40
- package/dist/tank-G7B4NL3F.js.map +1 -0
- package/package.json +3 -3
- package/dist/tank-BLHLRKT2.js.map +0 -1
package/README.md
CHANGED
|
@@ -52,6 +52,14 @@ frame loop (rAF or renderFrame(t)):
|
|
|
52
52
|
fish cap per device.
|
|
53
53
|
- **Adaptive governor**: steps render resolution down when frames exceed budget.
|
|
54
54
|
- **Zero-dep manifest subpath**: servers validate params without pulling three.js.
|
|
55
|
+
- **Lofi backend**: `createMetaquarium({ backend: 'lofi' })` swaps three.js for
|
|
56
|
+
the Apple TV's 2D aquarium — each fish's `_transparent_icon.png` swimming a
|
|
57
|
+
Canvas2D After Dark tank (kelp, bubbles, light shafts). Same seed, same
|
|
58
|
+
layout as the TV. It reads **only** `environment` and `fishMix`, and always
|
|
59
|
+
swims 8 fish (13 on high-tier devices) like the TV — so a default scene is
|
|
60
|
+
one hero fish in WebGL and a full tank in lofi, by design. Other params
|
|
61
|
+
(`swimSpeed`, camera, fog, …) are no-ops there. A host choice for QA and
|
|
62
|
+
nostalgia, not a scene param; the playground exposes it as `?lofi=1`.
|
|
55
63
|
|
|
56
64
|
## Params
|
|
57
65
|
|
|
@@ -121,6 +129,8 @@ never changes because a dependency was bumped.
|
|
|
121
129
|
| File | Role |
|
|
122
130
|
|------|------|
|
|
123
131
|
| tank.ts | Renderer, scene, fish spawn, environments, setState, governor, dispose |
|
|
132
|
+
| lofi.ts | Lofi backend, pure half: the Apple TV's 2D aquarium layout, poses, palettes |
|
|
133
|
+
| lofi-tank.ts | Lofi backend, canvas half: Canvas2D draw + transparent-icon loading |
|
|
124
134
|
| plan.ts | Catmull-Rom swim: compile, arc-length, pose-at-distance, path shapes |
|
|
125
135
|
| swim.ts | Swim styles, formations, depth bands, relationship bonds |
|
|
126
136
|
| maneuver.ts | Named seeded events (dart, startle, graze, curious, zoomies) |
|