chemaclass/phel-doom
最新稳定版本:v0.12.0
Composer 安装命令:
composer create-project chemaclass/phel-doom
包简介
DOOM-lite showcase written in Phel Lang. Terminal raycaster, pure functional state, ANSI render.
README 文档
README
DOOM-lite raycaster in your terminal. Pure Phel (Lisp on PHP). 256-color ANSI, 10 procgen levels, FPS combat, ~5ms frame. Full feature list: docs/features.md.
Play
Needs PHP >= 8.4 and a 256-color terminal.
Fastest: grab the single-file PHAR from the latest release (no clone, no Composer):
curl -fsSL -o phel-doom.phar https://github.com/Chemaclass/phel-doom/releases/latest/download/phel-doom.phar php phel-doom.phar
Build from source (needs Composer, or Docker)
git clone git@github.com:Chemaclass/phel-doom.git
cd phel-doom
make install
make play
Or composer install && composer play.
No local PHP? Run in Docker
PHP 8.5 CLI + Composer + deps in an image; docker is the only prerequisite.
make docker-build # build image make docker-play # launch game (raw TTY) make docker-test # run test suite make docker-shell # bash inside container make docker-clean # remove image
Override tag: DOCKER_IMG=mytag make docker-build. Host PHP is the inner loop; Docker adds ~1s startup.
Controls
| Key | Action |
|---|---|
w a s d / arrows |
Move / turn |
SHIFT |
Sprint |
space / r |
Fire / reload |
1...8 |
Switch weapon |
p / q |
Pause / quit |
Walk into doors to advance. Find weapons and pickups on the map.
Full controls, pickups, and weapons: docs/gameplay.md.
Internals
- docs/README.md - per-subsystem guide.
- docs/contributing.md - dev setup, test conventions, Phel gotchas.
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-22