Skip to content

josephbartlett/sim-emergent-fish

Repository files navigation

Fishtank Ecology (VGA)

Fishtank Ecology is a browser-local emergent behavior observatory. It runs a bounded aquarium simulation with autonomous fish, deterministic seeds, habitat formations, current fields, resource pressure, and inspection tools for watching local rules turn into visible patterns.

The latest tagged release is recorded in VERSION and CHANGELOG.md. In-progress work for the next release stays under Unreleased in the changelog and docs/roadmap.md.

Tank overview

Quick Start

python3 -m http.server 8000

Open:

  • http://localhost:8000
  • http://localhost:8000/seed-audit.html

With the server running, a minimal sanity pass is:

node --check game.js
curl -I http://127.0.0.1:8000/index.html
curl -I http://127.0.0.1:8000/seed-audit.html
python3 scripts/check_seed_audit.py
python3 scripts/check_replay_stress.py

To build the deployable static artifact:

bash scripts/build_static_site.sh

Highlights

  • autonomous grazers, shoalers, opportunists, and hunters with local sensing and simple intent rules
  • deterministic seeded tanks with bottom-mounted formations, wake zones, and current variation
  • juvenile and adult life stages, food competition, predation, reproduction, and disturbances
  • observatory UI with focus mode, fish inspector, named fish subjects, an in-tank subject card, story counters, watch feed, lineage highlighting, event timeline, scenario lab controls, replay bookmarks, and seed audit tools
  • a tank-first mobile observatory flow with portrait-safe sizing, handheld-only fullscreen mode, in-tank VGA HUD/event text, and touch-friendly fish selection
  • an optional rotating ambient MIDI pack, prewarmed for browser playback, with compact transport controls and hotkeys that stay visually subordinate to the tank
  • Asset Forge-backed fish and habitat art with fallback rendering in game.js

Docs

Simulation and usage:

  • docs/observatory.md: controls, overlays, inspector behavior, handheld/fullscreen flow, and what to watch
  • docs/simulation.md: ecology model, seeds, runtime parameters, and audit workflow
  • docs/assets.md: Asset Forge sceneplans, generated assets, and fallback behavior
  • docs/deployment.md: static hosting, hardening posture, and GitHub Pages deployment
  • docs/roadmap.md: planned version milestones, current quality notes, and the next major product direction, now focused on mobile-native controls and observatory iconography

Repository workflow:

Tracked screenshots live under docs/screenshots. Release policy, versioning, and release-note format live in RELEASING.md.

About

A VGA-style browser observatory for emergent fish ecology. Watch autonomous fish navigate currents, shelter, food pressure, and seeded habitats inside a bounded tank.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors