My Digital Aquarium
This is my little browser toy aquarium: a goofy, early-2000s fish tank vibe on the surface, with a surprisingly nerdy chemistry simulation running underneath.
Built with Codex in an afternoon
I built this with Codex in an afternoon. It is exactly the kind of project where an AI coding partner shines: quick iteration, fast experiments, and lots of tiny systems to glue together without losing momentum.
What it simulates
Under the hood it runs a fixed-step sim with chemistry and catch-up logic. The HUD tracks: temperature, pH, oxygen, ammonia, nitrite, nitrate, waste, and algae.
Controls / gameplay
- Cleaner: click/drag to scrub algae off the glass
- Scoop (net): click poop to remove it and earn coins
- Food: click to drop pellets; fish seek them when hungry
- Bubbles: click to spawn bubbles (adds oxygen)
- Move: drag plants/rocks (and other bits) around
- Magnet: collect coins more easily
- Hatchery: click the egg to hatch a fish (first is free, then eggs cost 100 gold)
Save + offline rules
- Autosaves every 30 seconds and on key actions.
- Uses localStorage key
dwbeck_fish_tank_save_v1. - On load, it simulates the real time elapsed since the last save (fast-forward up to ~6h, then aggregated catch-up).
- If you were away 72 hours or more, all living fish become permanent skeletons and a fresh egg becomes available.
Reset
Use the Reset button (top right) or clear your browser storage for the site to wipe the tank.
Files (for devs)
index.html- page + HUDstyles.css- layoutgame.js- main loop + renderingstorage.js- save/load (localStorage)sim.js- fixed-step sim + chemistry + offline catch-upentities.js- entity constructors + drawing helpersui.js- DOM + input glue
Browse by Tag
Marketing & Advertising
Technology & AI
- The AI Revolution
- Why We Shouldn't Fear AI and Automation
- Why Getting AGI Alignment Correct Matters
- Codex and Claude: Two AI Partners, Two Workstyles
- My Digital Aquarium: Fish Tank Chemistry Sim (built with Codex)
- 10 AI-Powered Side Hustle Ideas to Boost Your Income
- Web Development and Design Trends
Cybersecurity & Online Safety
Society & Culture
Personal & Philosophy
- A Secular Source of Morality
- Humbling of Human Exceptionalism
- The Invisible Struggle: What Unemployment Really Looks Like
- The Unwritten Rules of MMOs
- Tiny World Paths: a Pokemon-style adventure built with Codex
- David Beck: Autobiography
- Bitcoin and the Blockchain: An Overview
- Free Music for Creators - by David William Beck
Books & Writing
Tutorials