CLI tool for converting Tiled TMX files to Panda3D BAM files.
Usage:
$ pip install panda3d-tmx2bam
$ tmx2bam path/to/tmx/file.tmx path/to/bam/file.bam
or
from tmx2bam import Tmx2Bam
from direct.showbase.ShowBase import ShowBase
base = ShowBase()
tmx_map = Tmx2Bam("path/to/tmx/file.tmx")
tmx_map.node.reparent_to(render)
base.run()
find() important tiles by their properties/tags and make them move about and all that. Orthographic camera recommended!
Currently supports:
- TMX file with CSV data (default)
- Custom properties as PandaNode tags
- Multiple tilesheets
- Multiple layers and Groups
- Animated tiles
- Object layer/Objects (point, poly, rectangle, text, image)
- Background images
- Merge animated sprites
- Allow more shapes than just cards
Left to do:
- Infinite maps (chunks)
- Hexagonal and Isometric tiles
- Tile render order
- Tilesheet image collection
- Embedded tilesheet in tmx
- Embedding texture in bam
- Tiled features I'm not aware of
- Error handling
- A better readme
Mind:
- The Y axis is inverted in panda3d.
- Animated sprites can only have one steady frame-rate that you can set on the first frame in Tiled.
- Currently the image resolutions have to be power of two.
- Rendering individual tiles is slow. Add a custom property named "flatten" to layers to merge them.
- The ellipse and point objects are not drawn, they're empty nodepaths.
- I'm not a programmer but I play one on TV. Your mileage may vary.
Licensed WTFPL.
Metadata
Release files for panda3d-tmx2bam 0.0.251
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| panda3d_tmx2bam-0.0.251-py3-none-any.whl | Python 3 | none | any | Details for panda3d_tmx2bam-0.0.251-py3-none-any.whl |
Release files / panda3d_tmx2bam-0.0.251-py3-none-any.whl
| Download URL | panda3d_tmx2bam-0.0.251-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91b01d74898766c39c16d9178b902e8c53b4a655b965de61bd20016de200131a
|
|
BLAKE2b-256 checksum How to use checksums |
01d4aa770531c01c26a1fbd511b874ff9a675c160b603cb0d10723aee6ac11b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.5
|
Security for panda3d-tmx2bam 0.0.251
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.