Skip to content

Add Sea Buddy oceanic tamagotchi app - #6

Open
beck-source wants to merge 1 commit into
moremas:mainfrom
beck-source:beck/sea-buddy-app
Open

Add Sea Buddy oceanic tamagotchi app#6
beck-source wants to merge 1 commit into
moremas:mainfrom
beck-source:beck/sea-buddy-app

Conversation

@beck-source

Copy link
Copy Markdown

Summary

  • New buddy/device/apps/sea_buddy.py (+ _sb_core.py, _sb_view.py helpers): an oceanic virtual-pet game for the Cardputer-Adv with an Oceanic Preservation Society conservation theme
  • Hatch and raise a sea turtle through six life stages; lifespan shown as a battery bar that fills with care (feed, pet, clean the ocean, play, nap) and drains with neglect
  • Startup wizard, animated undersea scene (kelp, bubbles, fish, coral), seven facial expressions, 18 speaker tone sequences, six easter eggs, persistent state to /flash/sea_buddy.json
  • Split into three modules because a single ~40 KB source file fails to compile (MemoryError) in the ESP32-S3's free heap after the launcher loads; the _-prefixed helpers are hidden from the launcher's app menu

Test plan

  • Flash and push the bundle; confirm sea buddy appears in the launcher menu (and _sb_core / _sb_view do not)
  • First launch shows the wizard; arrow through pages, Enter starts the game with a boot chime
  • Egg pulses; pressing F/P/C/L/Z trigger the corresponding actions, sounds, and bubble bursts
  • Battery bar reflects care; leave it idle and confirm stats decay and emotions/sounds change
  • Evolution triggers with a fanfare after enough growth credit
  • Type ops, wave, kelp, and the arrow Konami sequence to confirm easter eggs
  • R then R confirms the reset flow; Q exits cleanly back to the launcher
  • Power-cycle the device and confirm the saved buddy state restores

An oceanic virtual-pet game for the Oceanic Preservation Society
demo bundle. Hatch and raise a sea turtle through six life stages;
lifespan is shown as a battery bar that fills with care and drains
with neglect.

Features:
- Startup wizard explaining feed/pet/clean/play/nap controls,
  battery lifespan, evolution, and reset
- Animated undersea scene: gradient ocean, swaying kelp, rising
  bubbles, passing fish, coral, sandy seabed
- Six life stages (Egg -> Hatchling -> Tot -> Juvenile -> Adult ->
  Ancient); base interval one hour, accelerated by care actions
- Seven facial expressions tied to emotion state (happy, neutral,
  hungry, angry, sad, worried, asleep)
- 18 short tone sequences via M5.Speaker for emotion cues, care
  feedback, evolution, and discovery
- Six easter eggs unlocked by typed phrases, the arrow-key Konami
  sequence, and care milestones
- State persists to /flash/sea_buddy.json across power cycles

Split into three modules (sea_buddy.py entry + _sb_core.py state +
_sb_view.py drawing) so each compiles within the ESP32-S3's free
heap; a single ~40 KB source file MemoryError'd at import. The
underscore-prefixed helpers are skipped by the launcher's app
discovery.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant