diff --git a/.claude/agents/flood-crew.md b/.claude/agents/flood-crew.md new file mode 100644 index 00000000..effb8597 --- /dev/null +++ b/.claude/agents/flood-crew.md @@ -0,0 +1,43 @@ +--- +name: flood-crew +description: Specialist for Flood Crew (e63334287a3deaa3/ebbwork/). Use for any change to Flood Crew: bug fixes, new features, balance, graphics, performance, phone/touch controls. Knows its files, storage keys and the repo rules that apply to it. +--- + +You are the specialist for **Flood Crew**, a game on Arjun's site (ascoding11.github.io). You make changes to this one game and leave the rest of the repo alone. + +## What it is + +Flood Crew (Back Room; first built as Ebbwork, and the folder, the `ebbwork:v1` save key and the names in the code keep that name), a single-player first-person flood-drainage game: each job is a flooded place, and you work out why it flooded and get it dry (three.js r187 from the site's own build with its r128 layer, then `../autores.js`; no Firebase, no rooms, no stats.js, no ads). It is our own design: the name, the six places, the tools, the prices and the text are ours. **Files:** `index.html` (the page and its styles), `game.js` (drawing, controls, sound, HUD and menus), `core.js` (everything that is not drawing, with no DOM and no three.js in it, so `node` can load it: `require('./core.js')` gives `{EWSim, EW, EWMaps}`), `es.js` (its Spanish for `../lang.js`) and `preview.jpg`. + +## Where it lives + +- Folder: `e63334287a3deaa3/ebbwork/`: `core.js`, `es.js`, `game.js`, `index.html`, `preview.jpg` +- Docs: the bullet for `e63334287a3deaa3/ebbwork/` in `README.md` (and the indented points under it). This is the source of truth for how the game works and stores data; read it in full before changing anything, and update it when you change behaviour, storage or file layout. +- Phone page: a row in `GROUPS` in `e63334287a3deaa3/m/index.html` and thumbnail `e63334287a3deaa3/m/thumbs/ebbwork.jpg`. + +## What it uses (detected from the code) + +- three.js (global r128 build from cdnjs, not ES modules) +- `../autores.js` loaded straight after three.min.js (automatic resolution) + +## Must stay true + +- Keep every storage path, room prefix, localStorage key, stats/leaderboard id and saved-data format working exactly as it is, so players' saved progress, settings, ratings and invite links carry over. Old names mentioned above (folder, keys, ids) are kept on purpose: never "tidy" them. +- Don't change Firebase security rules or the Firebase config, and don't create a new Firebase project. If a change needs storage the rules don't allow, stop and say so instead. +- Keep the keyboard-and-mouse version unchanged on computers, and keep the touch controls working: shown only on touch screens, nothing overlapping in portrait or with the phone sideways. +- This is a Back Room page: keep ``, keep it out of `sitemap.xml`, and never link to it from the public pages. +- Write all game text, questions and prompts in your own words; no copyrighted text. No new outside scripts, trackers or ads. + +## How to work + +1. Read `CLAUDE.md`, then this game's README entry, then the code you are about to change. Follow the code where the docs and the code disagree, and fix the docs. +2. Make the smallest change that does the job. One feature or fix per pull request; leave unrelated code alone. +3. Any change players can notice gets an entry at the top of `NEWS` in `e63334287a3deaa3/news.js` (follow the how-to at the top of that file: date, next version, `kind`, short title, bullets written for players) and the Spanish for each new line in `e63334287a3deaa3/news-es.js`. +4. Test by serving the repo (`python3 -m http.server` from the repo root) and opening `/e63334287a3deaa3/ebbwork/` with Playwright (pre-installed; `require('playwright')`, `chromium.launch()`): a laptop size such as 1366×768, a phone in portrait (390×844) and sideways (844×390) with touch on. Check the console for errors. +5. Commit and push only when asked; never open a pull request unless asked. When you do, start the description with plain-English bullets of what changed and which pages it affects, and call out anything risky. + +## Skills to use + +Load the ones that fit the task with the Skill tool: `game-graphics` (looks), `game-performance` (frame rate, load time), `threejs-materials-lighting` and `threejs-scene-setup` (they target r187 ES modules: translate to this game's r128 global build), `level-design`, `physics-tuning`, `audio-design`. General skills often show Godot or Unity code; translate the idea to plain JavaScript, and where they disagree with `CLAUDE.md` or the repo's own skills, those win. + +When you finish, report what you changed (files and why), how you tested it, and anything you could not do or that Arjun needs to decide. diff --git a/.claude/scripts/gen_game_agents.py b/.claude/scripts/gen_game_agents.py index eddff6c8..5dcf2ffc 100644 --- a/.claude/scripts/gen_game_agents.py +++ b/.claude/scripts/gen_game_agents.py @@ -80,6 +80,7 @@ 'flickerwood': ['game-ai', 'level-design', 'create-game-assets'], 'lanternhold': ['tower-defense', 'game-ai'], 'windrow': ['physics-tuning', 'game-feel', 'audio-design'], + 'ebbwork': ['level-design', 'physics-tuning', 'audio-design'], 'ninefold': ['puzzle'], 'quartets': ['puzzle'], 'crosslet': ['puzzle'], 'sleight': ['puzzle'], 'poopdle': ['puzzle'], 'back-four': ['puzzle'], 'starhop': ['game-feel'], 'quarry': ['survival-crafting', 'procedural-gen'], diff --git a/README.md b/README.md index b9d390c8..d23a2dd0 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,13 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `offline.js`, `sw.js`, `offline.html`: offline mode (version 2). `offline.js` (a deferred ` + + +Flood Crew + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + diff --git a/e63334287a3deaa3/ebbwork/preview.jpg b/e63334287a3deaa3/ebbwork/preview.jpg new file mode 100644 index 00000000..b06b7008 Binary files /dev/null and b/e63334287a3deaa3/ebbwork/preview.jpg differ diff --git a/e63334287a3deaa3/es.js b/e63334287a3deaa3/es.js index c6ae8829..14a3dab2 100644 --- a/e63334287a3deaa3/es.js +++ b/e63334287a3deaa3/es.js @@ -47,6 +47,7 @@ "Open Patchwork Tower": "Abrir Patchwork Tower", "More about Patchwork Tower": "Más sobre Patchwork Tower", "Open Flickerwood": "Abrir Flickerwood", "More about Flickerwood": "Más sobre Flickerwood", "Open Lanternhold": "Abrir Lanternhold", "More about Lanternhold": "Más sobre Lanternhold", + "Open Flood Crew": "Abrir Flood Crew", "More about Flood Crew": "Más sobre Flood Crew", // The Daily Puzzles line (#dailyToday, filled in by the script at the end of the page). 'Nothing done yet today': 'Nada hecho hoy todavía', '✓ {d} done today': '✓ {d} hechos hoy', 'Nothing done yet today · 🔥 1 day in a row': 'Nada hecho hoy todavía · 🔥 1 día seguido', @@ -71,7 +72,7 @@ L.add( { "ou found it": "a lo encontraste", - "Twenty-nine games and ten daily puzzles that aren't on the main site.": "Veintinueve juegos y diez puzles diarios que no están en el sitio principal.", + "Thirty games and ten daily puzzles that aren't on the main site.": "Treinta juegos y diez puzles diarios que no están en el sitio principal.", "On a phone? Open the phone version →": "¿En el celular? Abre la versión para celular →", "Every game, made for touch, and you can add it to your home screen.": "Todos los juegos, hechos para pantallas táctiles, y puedes agregarla a tu pantalla de inicio.", "Cars": "Autos", @@ -370,7 +371,7 @@ "Miss a puzzle we took away, or want a new one?": "¿Extrañas un puzle que sacamos o quieres uno nuevo?", "Tell us which in the suggestion box.": "Cuéntanos cuál en el buzón de sugerencias.", "Tell us": "Cuéntanos", - "Quick games with a joystick feel: snakes, sword duels, platformers, a maze chase and co-op tower defense.": "Juegos rápidos con sensación de joystick: serpientes, duelos de espadas, plataformas, una persecución en laberinto y defensa de torres en equipo.", + "Quick games with a joystick feel: snakes, sword duels, platformers, a maze chase, co-op tower defense, a garden to sweep and a flood to clear.": "Juegos rápidos con sensación de joystick: serpientes, duelos de espadas, plataformas, una persecución en laberinto, defensa de torres en equipo, un jardín que barrer y una inundación que despejar.", "Grow your snake and cut off the bigger ones.": "Haz crecer tu serpiente y córtales el paso a las más grandes.", "Online · up to 10": "En línea · hasta 10", "An online snake arena. Eat glowing pellets to grow, boost to slip in front of other snakes, and when they run into your body their whole length spills out as food for you. Stay inside the red ring.": "Una arena de serpientes en línea. Come bolitas brillantes para crecer, usa el turbo para meterte delante de otras serpientes, y cuando chocan contra tu cuerpo todo su largo se vuelve comida para ti. Quédate dentro del anillo rojo.", @@ -446,7 +447,19 @@ "A journal map that shows every leaf still on the ground, and a leaf finder for the last few": "Un mapa en el diario que muestra cada hoja que sigue en el suelo, y un buscador de hojas para las últimas", "Your gardens save themselves in this browser, leaf by leaf": "Tus jardines se guardan solos en este navegador, hoja por hoja", "Keyboard and mouse (rebindable keys), or touch on a phone: left thumb walks, drag to look, hold Use to work. Works either way up. Pick Low, Medium or High leaves in Settings.": "Teclado y mouse (teclas configurables), o táctil en un teléfono: el pulgar izquierdo camina, arrastra para mirar y mantén Usar para trabajar. Funciona en vertical u horizontal. Elige hojas en Bajo, Medio o Alto en Ajustes.", - "Quick games with a joystick feel: snakes, sword duels, platformers, a maze chase, co-op tower defense and a garden to sweep.": "Juegos rápidos con sensación de joystick: serpientes, duelos de espadas, plataformas, una persecución en laberinto, defensa de torres cooperativa y un jardín para barrer.", + "Flood sim": "Inundaciones", + "Work out why it flooded, then get it dry.": "Descubre por qué se inundó y déjalo seco.", + "6 jobs": "6 trabajos", + "New · First person": "Nuevo · Primera persona", + "Flood Crew in play, seen through the player's eyes in a flooded back yard: shallow brown water lies over grey paving and the edge of a lawn, with the brick house and its windows mirrored in it. A drain grate shows through the water with leaves and litter drifting near it, a split pipe sprays from the house wall, and a rake is held out in gloved hands. A gauge top left reads 82% water left, with a clock, scan, journal and pause buttons top right and the rake, bucket and wrench on the tool bar.": "Flood Crew en juego, visto desde los ojos del jugador en un patio trasero inundado: agua marrón poco profunda cubre las baldosas grises y el borde del pasto, y en ella se reflejan la casa de ladrillo y sus ventanas. La rejilla de un desagüe se ve a través del agua con hojas y basura flotando cerca, un caño rajado salpica desde la pared de la casa y unas manos con guantes sostienen un rastrillo. Un medidor arriba a la izquierda marca 82% de agua restante, con un reloj y los botones de escanear, diario y pausa arriba a la derecha, y el rastrillo, el balde y la llave inglesa en la barra de herramientas.", + "The storm has gone and the water has not. You are the one-person crew that gets called out: walk the flooded place, find what is keeping it wet, and fix that. The water is real: it runs downhill, pools in the low spots, stops at walls and sandbags, and only leaves through a drain, a ditch or your pump.": "La tormenta ya pasó y el agua no. Eres la cuadrilla de una sola persona a la que llaman: recorre el lugar inundado, encuentra qué lo mantiene mojado y arréglalo. El agua es de verdad: corre cuesta abajo, se junta en los puntos bajos, se detiene en paredes y sacos de arena, y solo se va por un desagüe, una zanja o tu bomba.", + "Six jobs that get bigger and trickier: a back yard, a street of shops, allotments in a hollow, a road under a bridge, a cellar below river level and a lane with a burst stream bank": "Seis trabajos cada vez más grandes y difíciles: un patio trasero, una calle de locales, huertas en una hondonada, una calle bajo un puente, un sótano por debajo del nivel del río y un camino con la orilla de un arroyo rota", + "Rake debris off a drain and watch it start to pull; leave the debris floating nearby and it washes straight back": "Quita los restos de un desagüe con el rastrillo y mira cómo empieza a tragar; si dejas los restos flotando cerca, el agua los trae de vuelta", + "Shut stop taps, tighten dripping joints, dig trenches through soft ground, lay sandbags across a gap": "Cierra llaves de paso, aprieta uniones que gotean, cava zanjas en terreno blando, pon sacos de arena atravesando un hueco", + "A pump that needs power and somewhere sensible for its hose to empty: pump into the same pool and nothing changes": "Una bomba que necesita corriente y un buen lugar donde vaciar su manguera: si bombeas al mismo charco, nada cambia", + "A depot with a job board, gear to buy with your pay, and a van that only holds so much": "Un depósito con un tablero de trabajos, equipo para comprar con tu paga y una camioneta en la que no entra todo", + "Up to three stars a job, a journal of what you have noticed, and a scan that lights up the water still left": "Hasta tres estrellas por trabajo, un diario con lo que has notado y un escáner que ilumina el agua que queda", + "Best with a keyboard and mouse. On a phone you get a walk stick, drag to look and buttons for your tools, upright or sideways. Your progress saves by itself.": "Mejor con teclado y mouse. En el celular tienes un stick para caminar, arrastras para mirar y hay botones para tus herramientas, en vertical u horizontal. Tu progreso se guarda solo.", "Horror obby": "Obby de terror", "New · Horror obby": "Nuevo · Obby de terror", "Cross the flooded pool halls without a splash. It hears you.": "Cruza los pasillos de piscinas inundados sin salpicar. Te oye.", @@ -521,6 +534,7 @@ "Fix the windows while a gargoyle kicks bricks at you.": "Arregla las ventanas mientras una gárgola te patea ladrillos.", "A maze chase by moonlight: gather pollen, outfly four night critters.": "Una persecución en laberinto a la luz de la luna: junta polen y escapa de cuatro bichos nocturnos.", "Co-op tower defense for up to 4: build towers and keep the lantern lit.": "Defensa de torres cooperativa para hasta 4: construyan torres y mantengan encendida la linterna.", + "Work out why each place flooded, then drain it: rake, dig, sandbag and pump.": "Descubre por qué se inundó cada lugar y luego vacíalo: rastrilla, cava, pon sacos de arena y bombea.", "A co-op horror obby for up to 4. Cross the flooded halls quietly: it hears every splash.": "Un obby de terror cooperativo para hasta 4. Cruza los pasillos inundados en silencio: oye cada salpicadura.", "A stock market game: trade the rumors, beat the index.": "Un juego de bolsa: opera con los rumores, gánale al índice.", "Every game works with touch: sticks, buttons and drag to look appear when you play.": "Todos los juegos funcionan con pantalla táctil: los sticks, botones y arrastrar para mirar aparecen cuando juegas.", diff --git a/e63334287a3deaa3/index.html b/e63334287a3deaa3/index.html index f666e4a0..c7b7fadc 100644 --- a/e63334287a3deaa3/index.html +++ b/e63334287a3deaa3/index.html @@ -36,7 +36,7 @@

You found it

The Back Room

-

Twenty-nine games and ten daily puzzles that aren't on the main site.

+

Thirty games and ten daily puzzles that aren't on the main site.

On a phone? Open the phone version → Every game, made for touch, and you can add it to your home screen.

@@ -914,8 +914,8 @@

Gridpop

-

Arcade

Quick games with a joystick feel: snakes, sword duels, platformers, a maze chase, co-op tower defense and a garden to sweep.

- 8 games +

Arcade

Quick games with a joystick feel: snakes, sword duels, platformers, a maze chase, co-op tower defense, a garden to sweep and a flood to clear.

+ 9 games
@@ -1142,6 +1142,31 @@

Leaf Sweep

▶ Play + + Flood Crew in play, seen through the player's eyes in a flooded back yard: shallow brown water lies over grey paving and the edge of a lawn, with the brick house and its windows mirrored in it. A drain grate shows through the water with leaves and litter drifting near it, a split pipe sprays from the house wall, and a rake is held out in gloved hands. A gauge top left reads 82% water left, with a clock, scan, journal and pause buttons top right and the rake, bucket and wrench on the tool bar. + NewFlood sim + +
+

Flood Crew

+

Work out why it flooded, then get it dry.

+
  • Solo
  • 6 jobs
  • New · First person
+
+ +
+

The storm has gone and the water has not. You are the one-person crew that gets called out: walk the flooded place, find what is keeping it wet, and fix that. The water is real: it runs downhill, pools in the low spots, stops at walls and sandbags, and only leaves through a drain, a ditch or your pump.

+
    +
  • Six jobs that get bigger and trickier: a back yard, a street of shops, allotments in a hollow, a road under a bridge, a cellar below river level and a lane with a burst stream bank
  • +
  • Rake debris off a drain and watch it start to pull; leave the debris floating nearby and it washes straight back
  • +
  • Shut stop taps, tighten dripping joints, dig trenches through soft ground, lay sandbags across a gap
  • +
  • A pump that needs power and somewhere sensible for its hose to empty: pump into the same pool and nothing changes
  • +
  • A depot with a job board, gear to buy with your pay, and a van that only holds so much
  • +
  • Up to three stars a job, a journal of what you have noticed, and a scan that lights up the water still left
  • +
+

Best with a keyboard and mouse. On a phone you get a walk stick, drag to look and buttons for your tools, upright or sideways. Your progress saves by itself.

+
+
+
diff --git a/e63334287a3deaa3/m/index.html b/e63334287a3deaa3/m/index.html index 03337b94..b268ea3d 100644 --- a/e63334287a3deaa3/m/index.html +++ b/e63334287a3deaa3/m/index.html @@ -241,6 +241,7 @@

Arjun's games

['flickerwood','Flickerwood','A maze chase by moonlight: gather pollen, outfly four night critters.',0], ['lanternhold','Lanternhold','Co-op tower defense for up to 4: build towers and keep the lantern lit.',1], ['windrow','Leaf Sweep','Gather, rake and blow thousands of real leaves out of five walled gardens.',0], + ['ebbwork','Flood Crew','Work out why each place flooded, then drain it: rake, dig, sandbag and pump.',0], ['hype-cycle-exchange','Hype Cycle Exchange','A stock market game: trade the rumors, beat the index.',0,'/hype-cycle-exchange/'] ],'arcade'] ]; diff --git a/e63334287a3deaa3/m/thumbs/ebbwork.jpg b/e63334287a3deaa3/m/thumbs/ebbwork.jpg new file mode 100644 index 00000000..2518e989 Binary files /dev/null and b/e63334287a3deaa3/m/thumbs/ebbwork.jpg differ diff --git a/e63334287a3deaa3/news/ngcoding10-drain-game.json b/e63334287a3deaa3/news/ngcoding10-drain-game.json new file mode 100644 index 00000000..52108f83 --- /dev/null +++ b/e63334287a3deaa3/news/ngcoding10-drain-game.json @@ -0,0 +1,24 @@ +{ + "kind": "game", + "title": "New game: Flood Crew", + "tags": ["Flood Crew", "Flood sim"], + "games": ["Flood Crew"], + "img": "m/thumbs/ebbwork.jpg", + "items": [ + "Flood Crew is in Arcade: a first-person game about getting flooded places dry.", + "Work out why each place flooded: a buried drain, a leak, a broken bank, or ground with nowhere to run to.", + "The water really flows. Rake a drain clear, dig a trench, lay sandbags or set up a pump, and watch where it goes.", + "Six jobs, a depot with gear to buy, and up to three stars a job. Your progress saves by itself.", + "Plays with a keyboard and mouse, or with touch on a phone." + ], + "es": { + "New game: Flood Crew": "Juego nuevo: Flood Crew", + "Flood Crew": "Flood Crew", + "Flood sim": "Inundaciones", + "Flood Crew is in Arcade: a first-person game about getting flooded places dry.": "Flood Crew está en Arcade: un juego en primera persona sobre dejar secos lugares inundados.", + "Work out why each place flooded: a buried drain, a leak, a broken bank, or ground with nowhere to run to.": "Descubre por qué se inundó cada lugar: un desagüe enterrado, una fuga, una orilla rota o un terreno sin salida.", + "The water really flows. Rake a drain clear, dig a trench, lay sandbags or set up a pump, and watch where it goes.": "El agua corre de verdad. Destapa un desagüe con el rastrillo, cava una zanja, pon sacos de arena o instala una bomba, y mira adónde va.", + "Six jobs, a depot with gear to buy, and up to three stars a job. Your progress saves by itself.": "Seis trabajos, un depósito con equipo para comprar y hasta tres estrellas por trabajo. Tu progreso se guarda solo.", + "Plays with a keyboard and mouse, or with touch on a phone.": "Se juega con teclado y mouse, o con pantalla táctil en el celular." + } +}