jumphp / tiles
Procedural tile maps for JumPHP: caves, dungeon rooms, auto-tiling, A* path finding, seeded random.
v0.5.97
2026-11-07 08:17 UTC
Requires
- php: >=8.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v0.5.97
- v0.5.96
- v0.5.95
- v0.5.94
- v0.5.93
- v0.5.92
- v0.5.91
- v0.5.90
- v0.5.89
- v0.5.88
- v0.5.87
- v0.5.86
- v0.5.85
- v0.5.84
- v0.5.83
- v0.5.82
- v0.5.81
- v0.5.79
- v0.5.78
- v0.5.77
- v0.5.76
- v0.5.75
- v0.5.74
- v0.5.73
- v0.5.72
- v0.5.71
- v0.5.70
- v0.5.69
- v0.5.68
- v0.5.67
- v0.5.66
- v0.5.65
- v0.5.64
- v0.5.63
- v0.5.62
- v0.5.61
- v0.5.60
- v0.5.21
- v0.5.20
- v0.5.19
- v0.5.18
- v0.5.17
- v0.5.16
- v0.5.15
- v0.5.14
- v0.5.13
- v0.5.12
- v0.5.11
This package is auto-updated.
Last update: 2026-11-27 18:31:41 UTC
README
A JumPHP engine extension (docs/extensions.md of JumPHP): a Composer package of type jumphp-extension. A game
that requires it gets its services, its boot class, its file loaders and its project.yaml keys, with nothing to wire.
public function __construct(private Flash $flash) {} // in a scene
$this->flash->flash('#ff4040'); // then update($dt) / render($r) each frame
Example game: games/tiles-demo.
Install (for the games that use it)
bin/jumphp extension:add <game> <vendor>/<package> # composer require + checks it is a jumphp-extension
Make it yours
composer.json: renamename(<your-vendor>/<package>), filldescription,license,homepage,support; keep"type": "jumphp-extension"and the keywordjumphp-extension(jumphp.net/extensions lists the Packagist packages that have it).extra.jumphp.engine: the JumPHP versions it works with ("^0.5",">=0.5 <0.7"): a game on another version stops at boot with a clear message instead of failing somewhere inside. Widen it once you tried the newer JumPHP.- Do not require
jumphp/engineinrequire(every JumPHP project has it already); pure PHP only (the browser build packs it). doc/index.md: its documentation, anddoc/samples/*.php: one scene for each thing it does (namespaceApp\Extensions\<Name>, apublic const LABEL).bin/jumphp extension:add <game> <package>copies them into the game (extensions/<name>/doc/,src/Extensions/<Name>/), and the JumPHP IDE opens the documentation with a Play button per sample.- Tests: the example game's
tests/play the extension (bin/jumphp test <id>-demo). Write one per feature.
Publish it
- A public Git repository with this folder's content at its root (
composer.jsonat the top). - A tag:
git tag v1.0.0 && git push --tags(Packagist's versions are the tags; follow semver). - https://packagist.org/packages/submit with the repository's address (sign in with Git, Packagist then installs its hook: each new tag is a new version).
- It appears in https://jumphp.net/extensions by itself (it reads the Packagist packages of type
jumphp-extension). - Show it: a README with a picture, the example game's screenshot (
bin/jumphp shot), a CHANGELOG.