Commit Graph

18 Commits

Author SHA1 Message Date
Brian Fertig 4d9ccbe3e5 Add per-frame gain to cues and maglev train sounds to Cyberpunk City
- Extend `Cue` with an optional `gain(t)` so a cue's volume can be rescaled every frame while it plays (e.g. by source distance), updated live in `CueTrack`.
- Play each maglev train's `fx-train.mp3` as it slides into view, swelling with the drone's proximity via `TRAIN_PASSES` distance data in `traffic.ts`.
- Rework flyby selection to avoid reusing a file still playing for an earlier car instead of just skipping close passes.
- Fix train window shading to be relative to each car's own end so windows ride along with it.
- Update README cue docs and swap the `fx-city.mp3` ambience loop.
2026-10-31 20:06:49 -06:00
Brian Fertig 166dae262c Add timed one-shot audio cues with hover-car flyby sounds
- New `Cue` type and `CueTrack` engine class: schedules one-shot effects at fixed meditation times via Web Audio, staying in sync across pause, seek, and skip (resume partway into a sounding cue).
- Cyberpunk City now plays a random `fx-flyby-1..5.mp3` whoosh whenever a hover car passes close under the drone; the crossing moments are computed from the traffic lanes (`PASSES`) so the sound's midpoint lands as the car crosses the frame edge.
- Wire `CueTrack` into the Player soundtrack alongside music and ambience, and document the new `cues` option in the README.
2026-10-31 19:40:28 -06:00
Brian Fertig 5e19f6e08e Add Cyberpunk City meditation scene
- New 5-minute pixel scene: rain-soaked neon avenue with buildings, crowds, traffic, holograms, and wet-street reflections, drifting to a plaza screen that dissolves into a moonlit sea
- Generalize ambience to support layering multiple loops (rain + city noise) in types and Player
- Register the meditation and document it plus the new `ambience` list form
2026-10-31 16:21:23 -06:00
Brian Fertig cd6a945dca Rework morning-flight dawn palette and unify cloud color model
- Replace per-deck shade/lit/edge/glow tracks with shared CLOUD_* curves plus a time lead so the high deck sees the sun sooner
- Retune sky, fog, mountain, glow, and city underlight timing and colors for a darker pre-dawn that blooms into pink/orange then blue morning
- Simplify cloud lighting math by dropping per-deck glow factors in favor of a fixed sunward blend
2026-10-31 14:32:30 -06:00
Brian Fertig e6da313b61 Add Morning Flight meditation with chase-camera Cessna landing scene
- New 5-minute "Morning Flight" meditation: fly behind a small Cessna over farmland and past a city, then descend and land at daybreak as the sun rises over the mountains
- Scene rendered per-pixel from world-space geometry: ray-traced building boxes with lit windows, procedurally filtered ground (fields, suburbs, runway), two cloud decks, dawn sky with stars, sun glow and rays, plus airport details like the tower beacon and windsock
- Chase camera follows an integrated speed/distance profile so altitude, propeller spin and lighting all stay pure functions of time
- Extend AmbientLoop with optional `until`/`fadeOut` so the engine drone can stop at the prop-down moment instead of running to the end; wire it through the Meditation type and Player
2026-10-31 14:24:42 -06:00
Brian Fertig 080321938d Add underwater ambience track to The Reef meditation 2026-10-30 19:53:41 -06:00
Brian Fertig d494e43f82 Add timed ambience and calm prayer-flag motion to Tibetan Monastery
- Extend `AmbientLoop` with `from`/`fadeIn` so an ambient track can stay silent until a given second, then fade in from the start of the file; used for `wind.mp3` over the final 90 s of Monastery Above the Clouds.
- Add a smoothed `breeze` and continuous `flutter` phase to the frame, and drive prayer flags off them so they sway gently instead of jittering with gusts.
- Tuck monks one row higher on the back path (`BACK_Y`) so the building walls fully hide them as they turn.
- Update README ambience docs for the new `from`/`fadeIn` options.
2026-10-30 19:47:31 -06:00
Brian Fertig ccc2a2dc5d Add Tibetan Monastery meditation scene
- New "Monastery Above the Clouds" meditation (300s) with sky, cloud sea, distant ranges, summit, monastery buildings, chorten, prayer flags and pole
- Animated elements: lammergeier circling, snow leopard on ledge, two monks walking the kora and spinning prayer wheels, lamp-lighter passing windows at dusk
- Weather progression: sun break with alpenglow and sunbeams, clouding over, mist, rising wind, falling/settled snow and spindrift
- Add ambient audio track `public/audio/tibetan-monestary.mp3` (note: filename typo "monestary")
- Register scene in `src/meditations/registry.ts` and document it in README
2026-10-30 19:33:32 -06:00
Brian Fertig b3bc5a9582 Replace the doe with an antlered buck leading the deer herd
- The lead deer is now a larger buck with branched mule-deer antlers; followers still trail behind him
- Add head-on front-view rendering (deerFrontSampler) so deer walking toward the camera are seen face-first instead of always side-on
- Introduce a View type and turn() easing to blend between walking, drinking (side-on at water), and front views
- Draw antlers in both side and front samplers with new antler/antlerBase palette colors and beamBox culling
2026-10-30 18:50:35 -06:00
Brian Fertig c614c20978 Add talus aprons rising at the canyon floor edges
- Introduce groundHeight() in world.ts describing a concave sweep of sand and rubble where the floor meets each wall, with noise-driven lumpiness along the crest.
- Rework stream.ts floor rasterization to march each screen column outward over the ground so raised aprons occlude the wall base, and render talus scree and fallen blocks that grow larger toward the wall.
- Pass ground height through project() in deer.ts and flora.ts so animals and plants sit on the sloped apron rather than the flat floor.
- Use per-pixel sun edge for apron pixels in drawFloor so sunlight falls off across the raised terrain instead of the flat-floor boundary.
2026-10-30 18:32:38 -06:00
Brian Fertig 5ea541287b Rework desert-sunrise arch, stream, and deer animation
- Rebuild the sandstone arch with a buttress, pinched leg, stepped crown, and depth-based cap rock shading
- Add stream rocks and ledges that generate white water, glassy water, streaks, splashes, and wet/mossy rock sprites
- Drive deer gait by distance walked with two-bone legs, pauses for grazing/looking, and alert pose
- Nudge the owl perch to sit better on the new arch silhouette
2026-10-30 18:23:36 -06:00
Brian Fertig 27ec480682 Add Desert Sunrise meditation scene
- 5-minute pixel-art canyon scene: starry night with Milky Way and shooting stars, owl gliding into a sandstone arch, deer drinking at the stream, then sunrise breaking through the arch with sun rays, alpenglow, mist, and morning wildlife (hawk, swallows, lizard)
- New world model with pinhole-camera projection for shared perspective across walls, floor, stream, plants, and creatures
- Procedural flora (sage, rabbitbrush, yucca, prickly pear, primrose, juniper, cottonwood, willow) placed along the canyon banks
- Reflective stream with flowing ripples, glitter, and bank mist that lifts at dawn
- Precomputed rock/floor layouts and cached plant shapes for per-frame rendering on a 320x180 buffer
- Register the meditation in the menu and README; add accompanying audio track
2026-10-30 17:28:59 -06:00
Brian Fertig 50526614dc Add "The Ringed Planet" meditation scene
- New 5-minute pixel-art meditation drifting in high orbit above a golden gas giant with rings
- Ray-traced planet body with differentially rotating cloud bands, storms, polar hexagon, terminator haze, lightning flashes and aurora curtains
- Layered ring sheet with density profile, orbital clumps, spokes, and cast shadows on the planet
- Passing cratered moon that casts a shadow, individual tumbling rocks/ice chunks in the near ring, and a deep-space background with galaxy band, nebulae, twinkling stars and a comet
- Voyager-style probe flies past with dish glints, beacon blink, and fade to a speck
- Registered in the meditation registry, audio track added, README updated
2026-10-30 16:33:57 -06:00
Brian Fertig cfd8c9a7a3 Add The Reef meditation with parallax coral reef and animated marine lif
- Introduce a new 5-minute "The Reef" scene registered in the menu, drifting along a sunlit coral reef
- Add `pathTrack` (Catmull-Rom 2D path) to Timeline and a reusable `Stamp` buffer for outlined, tinted creature rendering
- Build three parallax reef layers with procedurally generated corals, swaying anemones/fans/kelp, plus water, caustics, god rays, marine snow, bubbles and floor shadows
- Animate clownfish, sunfish, a gliding stingray, jellyfish, fish schools, and a baby turtle meeting two adults before they swim off together
- Bundle the scene's music track (public/audio/the-reef.mp3)
2026-10-30 15:53:34 -06:00
Brian Fertig 401e5310af Add sample.env template and ignore .env
- Provide a documented `sample.env` to copy into `.env` for port configuration
- Exclude `.env` from Docker builds and git tracking to avoid leaking secrets
- Update README to mention the new env file workflow
2026-10-29 21:21:37 -06:00
Brian Fertig 7977dbdd61 Add Mediterranean Coast meditation and clock-synced ambience loop
- New 5-minute scene: clearing skies over a jungle cove with waves, sailboat, gulls, crabs, palms, god rays, and an afternoon-to-evening light arc
- Add AmbientLoop (Web Audio) so a looping ambient track stays locked to the meditation clock through pause/seek, keeping visuals like wave crashes in sync with sound; Mediterranean Coast uses fx-waves.mp3 timed to measured crash peaks
- Extract ditherStep into engine/color and add Surface.setScaled for allocation-free scaled pixel writes
- Introduce ambience option on Meditation type and a Soundtrack wrapper in the Player that drives music and ambience together; disable audio under dev fast-forward
- Register mediterranean-coast in the registry and document the new ambience config in the README
2026-10-29 20:14:20 -06:00
Brian Fertig 15817f7c35 Add Docker support and new audio tracks
- Multi-stage Dockerfile: deps → dev (Vite hot reload) / build (typecheck + bundle) → runtime (nginx)
- docker-compose.yml with a default `web` service (port 8080) and a `dev` profile for hot reload (port 5173); ports overridable via PIXELTATION_PORT / PIXELTATION_DEV_PORT
- nginx config with gzip, immutable cache for fingerprinted /assets, and SPA fallback
- .dockerignore to keep the build context lean
- README: Docker Compose run instructions and a file reference table; note to rebuild the image after adding audio files
- Add coastline.mp3 and fx-waves.mp3 tracks under public/audio/
2026-10-29 19:44:09 -06:00
Brian Fertig 42bf83c3ca Initial commit for Pixeltation pixel art meditation app
- Browser-based calm pixel art meditations with a main menu and player UI
- Rendering engine (Surface, PixelCanvas, Loop, Timeline, color/rng/sprite/audio)
  that draws scenes as pure functions of time into a 320x180 buffer
- First "Northern Cabin" meditation: sunset-to-night lake scene with animated
  snow, stars, aurora, moon, fire, and a man gathering wood
- Dev tools: hash-based routing, time/speed query params, and a headless PNG
  snapshot script for checking frames without a browser
2026-10-29 19:33:35 -06:00