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.1

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.1
File Size Uploaded Provenance Actions
kirby_world-0.2.1.tar.gz 77.7 kB Without provenance Details for kirby_world-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 129.7 kB

Release files / kirby_world-0.2.1.tar.gz

Download URL kirby_world-0.2.1.tar.gz
Size 77.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8b585003c5f59e1ce58d4cc8c030a93293c0e68253ff8322b3e2190b7ec99755
BLAKE2b-256 checksum
How to use checksums
da0fef9aa98d4e38ea33e08bb0a2fd79969f19db26eba170e7b72837902554bf
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.1-py3-none-any.whl

Download URL kirby_world-0.2.1-py3-none-any.whl
Size 52.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75b81ead77ae4f4ee2934938f441629bc10629b5853d350f52f02e23f4fa9257
BLAKE2b-256 checksum
How to use checksums
b57e31fa6cc3d81920992c5cf7749fbe3f26e0a41de49d965c6a53000333b19a
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.1

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