Skip to main content

kirby-world

Places for the Kirby HERO System platform: a World of Scenes, and the geometry inside them — surfaces, walls, furnishings, hazards, constructs, cover, falling, line of sight and per-mode movement reachability.

A place is not a fight. A house with five people doing chores, and what is reachable from the kitchen, needs nothing but this package:

from kirby_world import AmbientConditions, Position, Scene, SceneBounds
from kirby_world.movement_legality import movement_reach

house = Scene(id="house", name="Safehouse", bounds=SceneBounds(0, 0, 0, 20, 20, 4),
              surfaces=[], walls=[], hazards=[], ambient=AmbientConditions())
house = house.place_combatant("ana", Position(1.0, 0.0, 0.0))
movement_reach("flight", Position(0, 0, 1), Position(5, 0, 1), 10.0, house).reachable

Where it sits

kirby-terrain   what a thing is made of     no deps
kirby-world     places                      -> kirby-terrain
kirby-combat    the fight                   -> kirby-world, kirby-cost, kirby-dice

Questions about the person moving rather than the place — is he Stunned, what has this building already absorbed — belong to the fight. They arrive here as plain values (mover_can_move, a damage ledger), never as the fight itself. tests/test_a_place_without_a_fight.py enforces that by making the fight engine unimportable and building a house anyway.

Split out of kirby-combat at 0.20.0, where kirby_combat.scene remains as a re-export of this package.

License

PolyForm Noncommercial 1.0.0. Not affiliated with or endorsed by Hero Games.

Metadata

Release files for kirby-world 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kirby-world 0.2.0
File Size Uploaded Provenance Actions
kirby_world-0.2.0.tar.gz 76.6 kB Without provenance Details for kirby_world-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kirby-world 0.2.0
File Interpreter ABI Platform Actions
kirby_world-0.2.0-py3-none-any.whl Python 3 none any Details for kirby_world-0.2.0-py3-none-any.whl

Total release size: 128.0 kB

Release files / kirby_world-0.2.0.tar.gz

Download URL kirby_world-0.2.0.tar.gz
Size 76.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c022734200e76b9126a4fb209d017fe7ff4df0b4f7f63ae7d24b999e6c0b3ce4
BLAKE2b-256 checksum
How to use checksums
f0b5533d4b48a4cea2ee846f8876d880cea8a7ad352212831272524364a710d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kirby_world-0.2.0-py3-none-any.whl

Download URL kirby_world-0.2.0-py3-none-any.whl
Size 51.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9be7d8b09bc8f691e773398237983874d752bc24740b313e4b850c73d326e54e
BLAKE2b-256 checksum
How to use checksums
64ebf3dd843130d32b3acb0596c404d90715f1ad4e34cfb3f1e2f32a3e762bfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for kirby-world 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page