GameCube village life game built on hypercube-engine, a custom engine built in C# for the gamecube as an experiment what is possible with the hardware limitations being what they are. Current state: early implementation; see the explicit implementation status and technical design. The product brief is design-doc.md.
Build artifacts are delivered through GitHub Releases.
Each PR merged to main builds and checks the console and backend, then
publishes a numbered release. Versions use
major.minor.patch: every PR merged to main increments
minor once and resets patch to zero; major changes manually. PR prereleases use the current main version
plus +<12-character feature-branch commit hash>. Rebuilding the same source/main
snapshot keeps its version. For SD-card storage through Swiss/GC Loader,
download AnimalTown-VERSION.nkit.iso and copy it directly to the card.
Standalone SD installs use AnimalTown-VERSION-depot.zip; extract its apps
folder to the device root and launch apps/animaltown/default.dol. No AnimalTown
ISO is needed. Use SD2SP2 with a memory card in either slot, or Slot B SD Gecko
with a memory card in Slot A;
physical device/launcher qualification and hosted Depot permission remain pending.
See the app profile and release gates.
The NKit ISO remains the only disc image delivered. See NKit images for
size savings and the exact round-trip/payload verification gates. Releases also
contain separate .NET 10 server and compiled-tools ZIPs. All reports, checksums,
banners, updater documentation and captures are inside release/ in the Depot ZIP.
The compact update.json release feed is also uploaded for existing updaters;
all other downloads are ZIP or ISO files. Source and authoring kits are excluded;
GitHub's automatic source ZIP/tar.gz links contain only this README. Clone the
repository for source. Development status and physical hardware validation are
recorded in the release notes.
To publish a locally verified build, use a clean checkout, run both build commands
below, then run ./tools/publish-release.ps1 with an authenticated GitHub CLI.
-PackageOnly prepares the NKit image, archives and manifests without publishing. The publisher rejects dirty
or mismatched console/backend/app revisions, verifies the NKit image, its conversion report and a clean app extraction, uploads into
a draft, checks uploaded asset hashes, and only then publishes the prerelease.
The workflow can also be rerun from GitHub Actions using Build and release.
For a complete containerized Linux build of the game and backend, use the Linux build image instructions. GitHub builds and releases both products using that same image; local .NET/devkit installations are optional.
Developer terrain configuration lives in assets/terrain/terrain.json. It supports seamless repeating variants and seasonal nine-slice patches; see terrain authoring. Trees use only supplied GLBs. The world asset request brief lists exact missing models, dimensions, pivots and GameCube budgets within the GameCube/3DS scope.
Windows requirements: Git, .NET 8 and 10 SDKs, PowerShell 7 and Docker Desktop with Linux containers running. Native tools are pinned by image digest.
dotnet restore game/AnimalTown.GameCube --locked-mode
dotnet tool restore
./tools/build-game.ps1A successful console build produces out/AnimalTown-<version>.nkit.iso and
out/AnimalTown-<version>-depot.zip,
with bootable homebrew apploader, DOL, assets, opening.bnr, save artwork and
BUILD.txt. Full-size source and round-trip images are temporary conversion files
and are deleted after verification. Boot the NKit ISO directly in Dolphin/GCLoader/Swiss,
or launch the extracted app DOL from its complete SD installation.
Physical hardware validation remains outstanding. Rebuilds can use
-SkipAssets only when converted assets already exist for the same sources.
Dirty source is marked in all build identities. Generated assets/ISOs stay out
of Git. Original asset sources are retained in assets/models.
The town is 8×8 screen-sized tiles (160×160 fine cells). Existing larger towns crop automatically on load while keeping retained coordinates and progress. Outlying homes relocate with furniture, and loose possessions go to Lost & Found. See town size and save migration.
Empty villager cards open four-step onboarding: enter a name, choose a portrait, preview the actual cottage/home plot, then Save & begin. Choosing Play without saving at Start makes the last action Start playing and keeps a temporary town in memory instead. Choices stay in a discardable draft until that explicit save. Introductory portraits, wordmark, UI buffers and draft data are released before gameplay.
Controls: stick or D-pad moves in eight directions, B run/cancel, A interact/confirm, X backpack, Y map, Z equip
tool, Start settings; stick or D-pad selects and L/R changes menu tabs. Hold
the stick to repeat a selection; recenter after opening a menu or changing tabs.
Press Start and choose Save now in Settings to save. New towns, timed play, day rollover, travel, menus and debug actions never save automatically.
Debug menu entries are hidden by default. Press Z three times in a row on the
title screen or in the game to toggle them; other buttons or stick movement
restart the sequence. Visibility is saved to console preferences independently
of town data and is shared by both screens. When visible, choose
Debug / testing menu in Settings (or R to its tab) for rendering, lighting,
runtime and preview options; those in-game options last for this session.
Use X to reset a debug slider; Z remains available for the visibility toggle.
Closing an explanation returns to the same selected menu row. Memory-card
saves use the selected memory-card slot, AMTE/01,
split records in two banks, banner and icon. Start defaults
to the first usable card (A, then B); the confirmed slot is used for town data,
options and debug settings until restart. New archives need 34 free blocks.
Missing-card play works through Play without saving; save errors stay available for retry.
Outdoor ground shares the supplied neutral repeating texture with configurable terrain/season tints: see neutral ground. The roads and paths design compares four visual approaches, existing-art trials and explicit texture-pruning budgets; it is a proposal awaiting visual approval.
The cliff kit supplies eight low-poly GLBs, shared 128/256px soil textures and ground-material bindings. Hold L+R and press D-pad Up for its developer rendering preview; it does not alter the town. Rivers, ponds and the ocean use opaque GX water with two scrolling neutral textures, depth tint and optional shoreline foam. Walk and run are 5% faster, with normalized diagonals and facing that follows travel direction. Dialogue syllables use one explicitly retired audio channel; an unavailable sound voice leaves text and controls responsive.
./tools/build-server.ps1
$env:ConnectionStrings__Game='Host=localhost;Database=animaltown;Username=animaltown;Password=YOUR_LOCAL_PASSWORD'
dotnet out/server/AnimalTown.Server.dll --urls http://127.0.0.1:5189Use TLS ingress before exposing the service. Standard console builds leave
online play disabled; pairing and experimental movement are staging foundations.
Do not deploy this as a finished online game. Build a server image with
docker build -f server/AnimalTown.Server/Dockerfile -t animaltown-server ..
The online play PoC backlog records the agreed scope, existing backend coverage, Cloudflare HTTPS/WebSocket transport, dependencies and Dolphin/DOL-015 acceptance gates. It includes chat, eligible guest jobs and resident mail. The multiplayer status records the current staging implementation; the earlier networking brief remains historical architecture context where the newer scope has not superseded it.
./tools/test-changes.ps1See change validation for targeted checks, plan-only inspection and explicit full runs. Releases record their selected checks.
For a backend-only run, ./tests/server-integration.ps1 starts and removes a local
PostgreSQL test container. It uses ports 55439 and 5189. To check a disc boot
manually, open the built NKit ISO in Dolphin or use a GameCube loader.
tools/patch-native.ps1 adds the small
RTC bridge, sector-aligned card reader fix and card diagnostics to the pinned native bundle, configures the managed heap, and hides startup diagnostics;
it fails if the expected AOT signature changes.
The native IPL font API is supplied by DolphinDotNet PR #145, included in the pinned DolphinDotNet.Sdk NuGet package. Its CI checks pass. Firmware font data is read on the console and is never bundled on disc.
See the terrain/villager update for 2m cube/ramp sections, new-town water coverage, villager journeys, persistent names, the RTC clock, clipping and save v5 compatibility.
New towns use a seeded acre-template generator, with
connected rivers, two crossings, ponds and shoreline variants. Existing saves
retain their terrain. Developer previews: town-preview . OUTPUT_DIR SEED COUNT.
The offline texture/UV repacker stacks exact flat
colours, packs textured charts, and checks appearance before writing a new GLB.
Use repack-textures . INPUT OUTPUT --size256 or --sizeOriginal.
The human-driven editor design describes the proposed
interactive workflow; the current command-line tool supports rotated chart matches.
General texture decoding defaults to a 256-pixel maximum edge.
TextureResolution.Size128, Size256, Size512 and Size1024 select a maximum
edge for standalone textures and non-villager models; rectangular sources retain
aspect ratio and smaller sources are never enlarged.
Player and NPC villagers load 128px model textures by default. Villagers ship
only -tex128.dndmodel and the optional 256px .dndmodel; 512/1024px requests
are rejected before loading. ModelResources.LoadAsync("fox") selects the
128px package; passing TextureResolution.Size256 selects the optional 256px one.
Both are cooked directly from the original GLB with base plus one half-size mip.
Incremental and -SkipAssets builds remove stale oversized villager packages.
Other model types retain their 128/256/512/1024 variants. No model texture is
resized or upscaled on the console.
TextureCache.Load(path, false, TextureResolution.Size256) and
TextureCache.LoadFloor(path, TextureResolution.Size256) apply the same policy
to standalone and repeating-floor textures. Cache identity includes resolution,
source URI and commit. UI atlases remain lossless 128-pixel pages to preserve
font/icon coordinates. The texture cache is bounded to 4 MiB, and active default
floor textures to 4 MiB. Larger options are per asset; native model budgets still
apply and selecting 1024 for every model is not a supported whole-scene budget.
Building and interior gameplay is documented in building-interiors.md. A near a doormat enters/exits; C-stick turns the indoor view and L recentres it. NPC villagers visit homes and resume their journeys independently of the player's location. New exterior/interior models use validated definitions and shared door logic.
The lightweight title menu defers town assets until Start, saves startup debug options in a separate dev config memory-card item, and launches the standalone updater through Update.
The updater cleanup and debug build proposal describes safe retirement of old images and selecting development builds in-game.