From b68f71beb2d584af3de2fbc2e920715854899136 Mon Sep 17 00:00:00 2001 From: OpenClaw Engineer Date: Tue, 3 Mar 2026 20:43:23 -0600 Subject: [PATCH] chore: polish docs and verify local PHP runtime checks --- README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a88389b --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# Dino Land + +No-build browser game using plain **HTML/CSS/JS/PHP**. + +## Run locally + +```bash +cd "/Users/lawsonawhittington/.openclaw/workspace/Dino Land" +php -S localhost:8000 +``` + +Open: http://localhost:8000 + +## Controls + +- **Up Arrow**: jump +- **Down Arrow**: duck +- **Left Arrow**: walk backward +- **Right Arrow**: walk forward + +## Gameplay Rules + +- TRex starts with **3 hearts**. +- Moving forward earns score (**+1 per forward step unit**). +- Water gaps cause instant death if landed in. +- Ant collision costs 1 heart; jumping on ants crushes them. +- Pterodactyls unlock after score > 100 (duck to avoid). +- Meteors unlock after score > 250. +- On death: top-10 leaderboard is shown; top-10 runs can be saved. + +## Leaderboard persistence + +- Backend endpoint: `api/scores.php` +- Data file: `data/scores.json` + +## Quick verification checklist + +1. Start server and open game. +2. Confirm score increases while moving right. +3. Confirm hearts drop on ant / pterodactyl / meteor collisions. +4. Confirm water causes immediate game over. +5. Confirm leaderboard loads and score save works.