Aotearoa: Generations — Game Design Document

1. Overview

Genre: Idle/incremental settlement-building game Format: Single-page web app (HTML/JS), playable in-browser Session pattern: Short active check-ins (2–10 min) punctuated by long idle wait periods (minutes to hours), designed to unfold over multiple weeks of real time Rendering: PixiJS 2D (WebGL-accelerated 2D scene), NOT 3D — the scene is an illustrated, storybook-style landscape that visibly evolves as the game progresses Core fantasy: Grow a small founding settlement into a thriving population across two connected historical eras of Aotearoa New Zealand, watching one illustrated scene transform from coastline and waka to a modern town skyline


2. Design Pillars

  1. Idle + Active hybrid loop — long timers (crop growth, construction, ship voyages, immigration) run in the background even when the tab is closed; short satisfying tap-tasks fill the gaps when the player is actively engaged.
  2. One continuous illustrated scene — not separate levels or screens. The same canvas evolves in place: new buildings appear, old ones stay, the landscape fills in over the full playthrough.
  3. A visible turning point, not a reset — the arrival of European ships is a major mid-game event that unlocks a new layer of mechanics. The original settlement is NOT destroyed or replaced — it continues to exist and grow alongside the new systems, reflecting that both threads are part of the same continuous history.
  4. Long-tail pacing — early timers are short and rewarding (seconds/minutes) to hook the player quickly; later timers stretch to hours, encouraging players to check in once or twice a day over several weeks rather than sit and grind.
  5. Respectful, general historical framing — the game evokes eras and everyday settlement life (gardening, fishing, building, trade, township growth) rather than depicting specific real conflicts, real named historical figures, or sensitive events in detail. See Section 9.

3. Tech Stack & Asset Capabilities


4. Core Loop

4.1 Idle systems (tick automatically, including while offline)

4.2 Active tasks (player-initiated, quick to perform)

4.3 Offline progress

4.4 Milestones


5. Visual Style & Scene System (Isometric City Builder)


6. Chapters & Progression

Chapter 1 — Founding & Settlement (Māori Era)

Setting: A small group arrives by waka and founds a kāinga (settlement) on the coast.

Resources:

Buildings:

Active tasks: tend gardens, fish, gather timber, assign villagers, start construction

Progression: population and building milestones gradually raise a “settlement growth” meter. When it’s full, trigger the turning-point event.


The Turning Point — Sails on the Horizon


Chapter 2 — Trade & Growth (Colonial Era → Township)

New resources:

New buildings:

Active tasks: manage trade routes, assign new arrivals to jobs, start new construction, collect completed voyages

Progression: population and trade milestones unlock roads expanding the map, then small industry, then…


Chapter 2b — Township to Modern Growth (endgame)

New resources/systems:

New buildings:

End state: the full scene shows the complete arc — original kāinga still visible and thriving in one corner, surrounded by the township/city that grew up around and alongside it. This is the “ending” screenshot moment.


7. Data Model & Save System

Use a simple persistent key-value store. Suggested keys (single user, not shared):

game-state : {
  lastSavedAt: timestamp,
  chapter: 1 | 2,
  population: number,
  populationCap: number,
  resources: { kai, rakau, whenua, currency, tradeGoods, immigrants, ... },
  buildings: [ { id, type, status: "building"|"complete", completesAt } ],
  timers: [ { id, type, startedAt, duration, targetId } ],
  milestonesReached: [ ids ],
  turningPointTriggered: boolean,
  turningPointTimestamp: timestamp | null
}

8. UI Layout (suggested)


9. Historical & Cultural Sensitivity Guidelines


10. Pacing Notes (for a multi-week playthrough)

Stage Approx. real-time span Timer scale
Early Chapter 1 First session Seconds–minutes
Mid Chapter 1 Days 1–4 Minutes–~1 hour
Turning point ~End of week 1 Scripted event
Early Chapter 2 Week 1–2 Minutes–hours
Township growth Week 2–3 Hours
Modern endgame Week 3+ Several hours–a day

Tune actual numbers during build/playtesting — this table is a target shape, not fixed values.


11. Suggested File/Code Structure

/index.html          — page shell, loads PixiJS from cdnjs, mounts canvas + UI panel
/game/
  main.js            — app init, game loop (ticker), offline-progress calculation
  state.js           — game state object, save/load via storage API
  scene.js           — PixiJS scene setup, layers, building sprite management
  buildings.js        — building definitions (cost, timer, unlocks, sprite)
  resources.js        — resource definitions and generation rules
  milestones.js       — milestone thresholds and unlock effects
  events.js           — turning-point event + chapter transition scripting
  ui.js               — HTML/CSS side panel rendering and button bindings
/style.css

(A single-file version is also fine for portability — this structure is a suggestion for readability if the AI coding tool splits things up.)


12. Advanced Features & AI Capability Roadmap

The following features were previously marked as deferred, optional, or constrained by asset availability, but are fully achievable and supported for implementation:

Feature / System Previous GDD Status AI Implementation Capability & Method Feasibility
Storybook Art & Sprites “Primitive shapes only; we don’t have art assets” Gemini Image Generator (generate_image): Generate custom, consistent 2D storybook assets, parallax landscapes, building evolution sprites (Whare, Pā, Marae, Colonial Cottages, Mills, Town Hall, Modern Skyline), and turning-point event artwork. Fully Feasible (Active)
Dynamic Day/Night & Lighting “Optional, nice-to-have” PixiJS ColorMatrixFilter & Alpha Overlays: Smoothly shifts ambient lighting across Dawn, Midday, Golden Hour, Dusk, and Starry Night (with twinkling stars and glowing settlement fire embers). Fully Feasible (Active)
Procedural Sound & Music Engine “Stretch goal (not required for v1)” Web Audio API Synthesis: Zero external audio downloads. Generates procedural coastal waves, wind breeze, native birdsong synth, wood construction strikes, harvest sounds, and milestone chimes in pure JavaScript. Fully Feasible (Active)
Random & Seasonal Events “Stretch goal (not required for v1)” Interactive Event Dispatcher: Triggers non-punishing narrative flavor events (e.g. Bumper Kūmara Harvest, Favorable Coastal Currents, Calm Seas) with modal prompts and temporary efficiency buffs. Fully Feasible (Active)
Photo Mode / Postcard Snapshot “Stretch goal (not required for v1)” Canvas Extraction & Postcard Generator: Uses PixiJS canvas extraction (extract.canvas) to let players export a high-res screenshot with a vintage postcard border, settlement title, and timestamp. Fully Feasible (Active)
Historical Codex & Achievements “Stretch goal (separate list)” Codex & Badge Tracker Modal: Separate UI modal tracking player milestones, time-based accomplishments, and unlocking respectful historical context snippets. Fully Feasible (Active)
Save Import / Export Basic LocalStorage only Portable Save Strings: Adds a one-click Base64/JSON export and import modal so players can backup or transfer their multi-week progress across browsers and devices. Fully Feasible (Active)

13. Summary & AI Implementation Scope

Build a rich, polished single-page idle/incremental web application called Aotearoa: Generations:


14. V1 Implementation Decisions (From /grill-me session)

The following architectural and design decisions were made for the initial vertical slice (V1):

  1. Architecture & Tech Stack:
  2. Visuals & UI:
  3. Core Interaction: