35 lines
1.6 KiB
Markdown
35 lines
1.6 KiB
Markdown
# Living fishtank — Advent of AI Slop, day 1
|
|
|
|
> Draw a fish, release it into the tank, and watch it swim. Click the water to drop food and the fish will chase it.
|
|
|
|
Made for [day 1 of Advent of AI Slop](https://advent-of-slop.quesma.com/day/1/):
|
|
*"Create an animated fishtank, to which you can add fishes from your drawings."*
|
|
|
|
## What it does
|
|
|
|
- **Fish studio** (right panel): draw with a brush (8 colors, size slider, eraser, undo, clear),
|
|
then press **Release into the tank**. The drawing is trimmed to its bounding box, auto-oriented
|
|
so the tapered end (the head) faces the swimming direction, and given a random size and depth.
|
|
- **🎲 Random fish** generates a procedural fish so the tank is never empty.
|
|
- The fish swim with a strip-based tail wiggle, wander on their own, chase food, and turn at the glass.
|
|
- **Click anywhere in the water** (or the *Feed the fish* button) to drop pellets; fish home in and eat them.
|
|
- Ambient bubbles, swaying plants, caustic light, sandy bottom with pebbles.
|
|
- Your fish are stored in `localStorage` and come back on the next visit.
|
|
|
|
Everything runs in the browser; no server, no keys.
|
|
|
|
## Commands
|
|
|
|
```sh
|
|
pnpm install
|
|
pnpm dev # http://localhost:5173/
|
|
pnpm build # typecheck + build to dist/
|
|
```
|
|
|
|
## Notes
|
|
|
|
- Built on the official [advent-of-slop template](https://github.com/QuesmaOrg/advent-of-slop-template)
|
|
(Vite + TypeScript), published to Gitea instead of GitHub — `dist/` is a plain static site,
|
|
serve it from any static host. Paths are relative (`base: './'`).
|
|
- `pnpm build` must pass before a push (per AGENTS.md).
|