您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Daniel Covington f704218536 M1.1: settle memory map with a custom ld65 config 1周前
cfg M1.1: settle memory map with a custom ld65 config 1周前
docs M1.1: settle memory map with a custom ld65 config 1周前
fixtures Initial handoff from the C64/C128 Dev Foundry 1周前
src M1.1: settle memory map with a custom ld65 config 1周前
tools M1.1: settle memory map with a custom ld65 config 1周前
.gitattributes Initial handoff from the C64/C128 Dev Foundry 1周前
.gitignore Initial handoff from the C64/C128 Dev Foundry 1周前
AGENTS.md Initial handoff from the C64/C128 Dev Foundry 1周前
CLAUDE.md Initial handoff from the C64/C128 Dev Foundry 1周前
README.md Initial handoff from the C64/C128 Dev Foundry 1周前
project.json M1.1: settle memory map with a custom ld65 config 1周前

README.md

Stonehold 64

An original colony-simulation game for the Commodore 64 in the fortress-building genre. The player does not control dwarves directly: they designate tiles to dig and a small crew of dwarves walks over and mines them on their own, revealing a randomly generated underground map. The view is a top-down tile map, drawn with an original custom character set, that scrolls over a world much larger than the screen.

  • Targets: c64 (details in docs/spec.md)
  • Language/toolchain: C (cc65) with ca65 assembly modules - Windows cross-development with cc65 (C, ca65 assembly or mixed) and VICE (docs/toolchain.md)
  • Status: starter only (milestone M0). Next milestone: M1 - World and view.

First run

All commands run from this folder in PowerShell 7 (pwsh). Paths with spaces are fine.

1. Check prerequisites

pwsh -File tools/check-prereqs.ps1

You need cl65, x64sc, PowerShell 7, git. For any missing tool the script prints the first command to run. If a tool is installed somewhere unusual, set VICE_HOME or CC65_HOME to its folder.

2. Build

pwsh -File tools/build.ps1

Outputs go to build/. Per-target artifacts and commands: docs/toolchain.md.

3. Automated smoke test

pwsh -File tools/smoke.ps1

Expected output: one [PASS] <target> line per target, with the checks listed under it, and exit code 0. VICE runs minimized for a few seconds per target with its own temporary settings; your VICE configuration is not touched. Screenshots are saved to build/smoke/<target>/.

4. Run it yourself

pwsh -File tools/run.ps1 -Target c64

Expected screen: Row 0: ‘STONEHOLD 64’. Row 1: ‘CHARSET OK’ (or ‘MEMORY CLASH’ if the program has grown over the charset at $3800). Rows 3-21: a sample patch of map drawn with the custom glyphs: brown soft rock with grey hard-rock flecks, a dark-grey floor cave in the middle with three orange dwarves, two yellow marked rock tiles and a white cursor bracket. Row 23: a glyph legend (ROCK, HARD, FLOOR, DWARF, DIG). Row 24: ‘STONE 000 FRAME nnn ANY KEY EXITS’ with the frame counter changing every frame. Any key restores the normal character set and returns to BASIC.

Start the implementation agent

Open a fresh coding-agent session in this folder and send:

Read AGENTS.md and follow it. Build and verify the starter (milestone M0) first, then implement the next milestone one task at a time, reporting after each task what changed, which checks ran, and exactly how I should verify it.

The agent's instructions are in AGENTS.md. It reports after every task, with exact steps for you to verify by hand, and treats your verification as pending until you confirm.

Layout

Path Contents
AGENTS.md Implementation instructions for the coding agent
docs/spec.md Approved requirements and acceptance criteria
docs/toolchain.md Language decision, tools, commands, verification status
docs/milestones.md Ordered tasks with completion checks
docs/manual-tests.md Manual test steps and expected results per milestone and target
docs/verification-status.md What has been verified, and what is pending
project.json Approved structured brief and resolved build configuration
src/ Program source
fixtures/ Sample inputs (stored byte-for-byte)
tools/ Build, run, smoke-test and prerequisite scripts
build/ Generated outputs (not committed)

Generated by the C64/C128 Dev Foundry on 2026-11-26 from a spec approved by Daniel Covington on 2026-11-26.

Powered by TurnKey Linux.