SkelForm runtime for Kraken Engine.
pip install skelform_kraken
Demo
After installing the library:
skelform-demo
Usage
import skelform_kraken as skf
Basic Setup
skf.load()- loads.skf/.skfefile and returns armature & textures, to be used laterskf.animate()- transforms the armature's bones based on the animation(s)skf.construct()- provides the bones from this armature that are ready for useskf.draw()- draws the bones on-screen, with the provided style(s)
1. Load:
(armature, textures) = skf.load("skellington.skfe")
This should only be called once (eg; before main game loop), and armature and
textures should be kept for later use.
2. Animate:
# use `skf_pg.time_frame()` to get the animation frame based on time (1000 = 1 second)
time = 2000
frame = skf.time_frame(time, armature.animations[0], False, True)
print(frame) # will be at the 2 second mark of the animation
armature.bones = skf.animate(armature, [armature.animations[0]], [0], [0])
Note: not needed if armature is static
3. Construct:
center = kn.Vec2(screen.get_width()/2, screen.get_height()/2)
final_bones = skf.construct(
armature,
screen,
skf_pg.AnimOptions(
pos=center
)
)
Modifications to the armature (eg; aiming at cursor) may be done before or after construction.
4. Draw:
skf.draw(final_bones, armature.styles, textures, screen)
Metadata
Release files for skelform-kraken 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skelform_kraken-0.7.0.tar.gz | 16.4 MB | Without provenance | Details for skelform_kraken-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skelform_kraken-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for skelform_kraken-0.7.0-py3-none-any.whl |
Total release size: 18.3 MB
Release files / skelform_kraken-0.7.0.tar.gz
| Download URL | skelform_kraken-0.7.0.tar.gz |
|---|---|
| Size | 16.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9658d37b461ebf60c78441b4c7d6070617c3bcf62d65925d652ea8488dd4bbf
|
|
BLAKE2b-256 checksum How to use checksums |
b63715a8c926d313df8ca08a01599344d86d2490c9452dba22b63de191b62548
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / skelform_kraken-0.7.0-py3-none-any.whl
| Download URL | skelform_kraken-0.7.0-py3-none-any.whl |
|---|---|
| Size | 1.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68472839f63184355bd9ba034173fba4c1dc5ea3d424f5f81d55affc2af2e6b4
|
|
BLAKE2b-256 checksum How to use checksums |
7826440081c7d2780643f03d703af52cf58ad5ef22b7248008c1538a9ea67827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for skelform-kraken 0.7.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.