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.

Files for pg-atlas, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pg_atlas-0.0.1-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pg-atlas-0.0.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page