Skip to main content

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


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)

Uploaded Source

Built Distribution

pg_atlas-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page