A pygame animation package
Project description
Pyanimation
===========
A python module to easily create animations in pygame
.. image:: /examples/images/spritesheet.png
Setup
-----
.. code-block:: bash
$ pip install pyanimation
Code sample
-----
.. code-block:: python
girl = Animation("images/spritesheet.png")
girl.create_animation(0, 0, 125, 125, 4, "run", duration=50, rows=4)
screen.blit(girl.update_surface(), (girl.x, girl.y))
Look in the example folder for complete examples.
.. image:: /examples/images/showcase.gif
===========
A python module to easily create animations in pygame
.. image:: /examples/images/spritesheet.png
Setup
-----
.. code-block:: bash
$ pip install pyanimation
Code sample
-----
.. code-block:: python
girl = Animation("images/spritesheet.png")
girl.create_animation(0, 0, 125, 125, 4, "run", duration=50, rows=4)
screen.blit(girl.update_surface(), (girl.x, girl.y))
Look in the example folder for complete examples.
.. image:: /examples/images/showcase.gif
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyanimation-0.4.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for pyanimation-0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f7599be9acbfe144fb4ee8c9de108599d53bf721a21214cef97cc3479b4018 |
|
MD5 | 8f26bd5eebc3a01a01d914ed0b51c6f8 |
|
BLAKE2b-256 | 5ec8b8ae57fd21a6bcb094a4efa8e2a40957c5c6bb3f9a289fa9dfaf648513f8 |