Library for running SkelForm animations in Pygame.
import skelform_pygame as skf_pg
Basic Setup
skf_pg.load()- loads.skffile and returns armature & textures, to be used laterskf_pg.animate()- transforms the armature's bones based on the animation(s)skf_pg.construct()- provides the bones from this armature that are ready for useskf_pg.draw()- draws the bones on-screen, with the provided style(s)
1. Load:
(armature, textures) = skf_pg.load("skellina.skf")
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_pg.time_frame(time, armature.animations[0], False, True)
print(frame) # will be at the 2 second mark of the animation
armature.bones = skf_pg.animate(armature, [armature.animations[0]], [0], [0])
Note: not needed if armature is statilc
3. Construct:
center = pygame.Vector2(screen.get_width()/2, screen.get_height()/2)
final_bones = skf_pg.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_pg.draw(final_bones, armature.styles, textures, screen)
Limitations
- Mesh deformation not supported
Metadata
Release files for skelform-pygame 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_pygame-0.7.0.tar.gz | 16.9 MB | Without provenance | Details for skelform_pygame-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skelform_pygame-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for skelform_pygame-0.7.0-py3-none-any.whl |
Total release size: 18.1 MB
Release files / skelform_pygame-0.7.0.tar.gz
| Download URL | skelform_pygame-0.7.0.tar.gz |
|---|---|
| Size | 16.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a83d25f6395cc1d5ea0dcf811df80af43d7296c4a633b0473c63bc6c5e5bf74c
|
|
BLAKE2b-256 checksum How to use checksums |
a624cf78775df743b07653d103827448fc8241cbdbb9fe6d81efd9caba9b36c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / skelform_pygame-0.7.0-py3-none-any.whl
| Download URL | skelform_pygame-0.7.0-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
978591de57b59ba1063f0e61dbddf4a5e07cd3bda641a9af8f215d240f87a3e3
|
|
BLAKE2b-256 checksum How to use checksums |
da556c2f8424929fec5435519ce2c155e739f50c94efb4a1138be59de7bb1f8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for skelform-pygame 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.