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.3.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for pyanimation-0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00535ab5f9fa274a1ecef34b72c45648b9e2a2f787f9df6574fc42995bae4681 |
|
MD5 | fbee6774343878df83fa85e32e582fb7 |
|
BLAKE2b-256 | 935b2a30bf0d60e251da1d9364a449250b2a979478905c4662f819df3aa82772 |