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.5.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for pyanimation-0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5052dcfaa3ce11d2ea60ebd41ce9d7697a3d40bf1c56d9cc1fa5c2fddc24691d |
|
MD5 | cfcdbd5a0dc80f6fa2103f09d781f05b |
|
BLAKE2b-256 | 66b3e239717e3aa6527d9ff48452eece0e8718c80de41acf299e23fe340d9b80 |