Skip to main content

p3dss - the spritesheet handling library for Panda3D

Project description

Spritesheet handling library for Panda3D

p3dss

Description:

p3dss is a spritesheet handling library, initially started as part of my WIP game a2s3. While its main focus is to provide a single object to handle all sprites and animations on spritesheet image, it also has some side abilities, such as batch texture cutting.

Development Status:

Work in progress. While I generally try to make each update stable, there may be changes requiring code adjustments. If you will consider to use this library - refer to the particular version in your project's dependencies.

Dependencies:

This project depends solely on panda3d and nothing else.

Limitations:

  1. I've only tested this with .png images, but theoretically every texture format supported by panda3d itself, should work. For as long as its static image and not something already animated (gif, etc).

  2. Because this library's spritesheet handling mechanism is based on setting offsets, rather than cutting image in memory, following limitations apply:

  • Spritesheet has to divide to provided sprite size without remainder. If it doesnt cut to perfect sprites, you will get strange results while using some of these (e.g blurry parts, parts of other sprite visible on previous and such)
  • Some functionality may require your spritesheet to fit such amount of sprites into its rows and columns, that will be the power of 2. Depending on case, it may be possible to circuimvent it with Config.rpc magic (see example code for further info).

Usage:

License:

This software has been licensed under MIT. For license of media used in example snippets, see media_info.txt

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

p3dss-0.5.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

p3dss-0.5.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file p3dss-0.5.0.tar.gz.

File metadata

  • Download URL: p3dss-0.5.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6

File hashes

Hashes for p3dss-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8b7bf95d38697641ba12f13688c753e6632fc5b97fa44f2b8cc965c36b9ceb0c
MD5 ecaa9ab510a388a7845bbb4c359746f4
BLAKE2b-256 b9da85427710c103affa52df94b118f8ecdc3cd7910a128040e51a4c4d10df02

See more details on using hashes here.

File details

Details for the file p3dss-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: p3dss-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.6

File hashes

Hashes for p3dss-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b0755ff5b9583c35bad5b73c566f0ea92c52b9f8f4b56d819867ad9aa5f5c93
MD5 524ebdc8d0bc525c73732c143554c120
BLAKE2b-256 ab5627e9d2efcaec84f5320f8e8035c85d34dce70d22995b461a61beab448ea6

See more details on using hashes here.

Supported by

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