# CookieBlob ANSI RPG v0.2

A playable old-school browser RPG using colored ANSI-style text as its graphics and CookieBlob for persistent local state, transmissions, and portable JSON seeds.

## Playable files

- `index.html` — standalone browser build
- `wordpress-room.html` — dependency-free Custom HTML block export
- `test-browser.mjs` — Playwright smoke test for the overland and dungeon loops
- `SOP-COOKIEBLOB-ANSI-RPG-V0.1.md` — original build contract and acceptance matrix
- `test-report.md` — verified implementation status

## Overland mode

From the Terminal, choose `TAKE THE OLD ROAD` to enter the persistent 30×14 ANSI map. Move with arrow keys or WASD. Roads (`=`) and plains (`.`) are passable; forest (`^`), water (`~`), and walls (`#`) block movement. The map tracks coordinates, discovered tiles, visited tiles, travel steps, day count, fatigue, and landmark events in the same CookieBlob state object.

Landmarks in v0.2:

- `T` Wayfarer's Post — restore HP, clear fatigue, and refill rations
- `+` Broken Shrine — one-time HP restoration
- `?` Ruined Watchtower — one-time lore event that marks the locked Moss Crypt
- `A` Lower Archive — enter the existing dungeon and return to the exact map tile
- `M` Moss Crypt — marked as a future dungeon; currently a safe locked teaser

The first overland slice deliberately keeps random encounters out. Movement, terrain refusal, landmark interaction, dungeon entry, dungeon return, persistence, and seed compatibility are the testable foundation.

## Core dungeon loop

Enter the Lower Archive, search the shelves, fight or flee from the Archive Goblin, recover the brass key, open the Sealed Door, and resolve the Keeper encounter. Progress is saved under `cookieblob_ansi_rpg_v01` in browser localStorage. Existing CookieBlob keys are not used.

## Public test package

https://zo.pub/tenchi/cookieblob-ansi-rpg-v01

Open `index.html` from the collection to play the standalone build. The `wordpress-room.html` file is the paste-ready version for a WordPress Custom HTML block.
