Simple Image Atlas creator for Pygame framework
Project description
Pygame image`s Atlas Creator
This program makes it easy to create a Atlas using Sprite Sheets created by TexturePacker for Pygame.
Usage example: Create Atlas Object from JSON file generated by TexturePacker
from pg_atlas import PGAtlas
atlas = PGAtlas(path='example.json')
Then create pygame.Surface from atlas by calling create_image() method with the Frame`s name in JSON file.
image = atlas.create_image('example_frame.png')
You can also create a list of images by passing list of frame names to create_images() method.
images = atlas.create_images(['example_image_1.png', 'example_image_2.png'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pg-atlas-0.0.1.tar.gz
(1.9 kB
view hashes)