Commit Graph

9 Commits

Author SHA1 Message Date
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