pylcanim
pylcanim is a simple library for playing animations made with sprite factory
(https://github.com/craftworkgames/SpriteFactory)
Installation of pylcanim library
To install from pypi with pip
pip install pylcanim
Downloading SpriteFactory
You can directly download the executable(note: At this point this is windows only) From: https://craftworkgames.itch.io/sprite-factory Or build it yourself From: https://github.com/craftworkgames/SpriteFactory
Using SpriteFactory
You can see this video https://youtu.be/mSakKpmBjrg (time stamp in description)
Using the library
import the pylcanim into your project with
from pylcanim import pylcanim
Then initialize the library with
pylcanim.init('Path/To/Your/SpriteFactoryFile.sf')
In your main loop write
image=pylcanim.lcAnim(fpscount,row)
Where
fpscount is an integer which determines how fast your animation should run(0 is fastest and becomes slower increasingly)
and
row is the row number in which your sprite is situated(default=0 for single line spritesheets)
An entire Example
import pygame
from pylcanim import pylcanim as p
(width,height)=(300,200)
clock=pygame.time.Clock()
screen=pygame.display.set_mode((width,height))
pygame.display.flip()
running=True
p.init('run.sf')
while running:
image =p.lcAnim(3,0)
for event in pygame.event.get():
if event.type==pygame.QUIT:
running=False
screen.fill((255, 255, 255))
screen.blit(image, (0, 50))
pygame.display.update()
clock.tick(60)
pygame.quit()
Metadata
Release files for pylcanim 0.0.7
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 |
|---|---|---|---|---|
| pylcanim-0.0.7.tar.gz | 2.7 kB | Without provenance | Details for pylcanim-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylcanim-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for pylcanim-0.0.7-py3-none-any.whl |
Total release size: 6.2 kB
Release files / pylcanim-0.0.7.tar.gz
| Download URL | pylcanim-0.0.7.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3ecdff4de22a03ab375da7eeee9c64f87f1f2cb60af54c35edc41b74cb861cb
|
|
BLAKE2b-256 checksum How to use checksums |
d6f6d9a6f82b6c23ba33418c85e5f2071d310c25117ce7d900b37f3f7a4005e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Release files / pylcanim-0.0.7-py3-none-any.whl
| Download URL | pylcanim-0.0.7-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f369fe233dfb2f68f62c852ece53601d54425d8e3bfd30438f2bc8580143a02
|
|
BLAKE2b-256 checksum How to use checksums |
b15c7a705a47fb1445c55a9c50e2552d803965fc4c43122f42ae6cd83dd3fe64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
|
Security for pylcanim 0.0.7
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.