ZH

Amibe

作者:gilforge · 演示与实验
暂无评分
▶ 开玩 💬 反馈 源码 🕘 版本 编辑 GitHub
games/amibe / AGENTS.md · commit 30c45f3
# amibe — notes for agentsThis game is built with JumPHP. **Read `../../AGENTS.md` first** (rules, commands, API).## Checklist```bashbin/jumphp test amibe                 # lint + phpstan + headless smoke test (must pass)bin/jumphp shot amibe 60              # title screen -> games/amibe/var/screenshots/shot.pngJUMPHP_INPUT='[[5,"confirm"]]' bin/jumphp shot amibe 240 var/screenshots/play.pngbin/jumphp build amibe && bin/jumphp webshot amibe 6 '[[1,"Enter"]]'   # browser (needs bin/jumphp engine:build)```## This gameStarted from the JumPHP skeleton (a small platformer). Update this section as the game grows:- **What it is**: ...- **Scenes**: `TitleScene` (menu) → `PlayScene` (level) ; overlays `PauseScene` ; `OptionsScene` (pushed).- **Entities**: `Player` (Sprite + Gravity + TileCollision), `Coin`.- **Controls** (`config/input.yaml`): arrows / WASD move, Space jumps, Escape pauses.- **Smoke test** (`config/game.yaml` smoke): `PlayScene` with `demo: true` (a bot runs and jumps).- **Non-obvious**: the tileset is drawn with GD in `PlayScene::makeTileset()`; replace it with a PNG  (`assets/tiles/`) or a Tiled map (`TiledJsonLoader`).