tilemap-parser
Standalone parser/loader for tilemap-editor JSON maps, sprite animations, and a collision detection runtime.
Install
pip install tilemap-parser
Quick start
from tilemap_parser import load_map, TileLayerRenderer, Camera, ParticleField, FOG_PROFILE
game_data = load_map("path/to/map.json")
renderer = TileLayerRenderer(game_data)
camera = Camera(800, 600, mode="centered")
camera.follow(player)
# Persistent fog: fill once, wrap forever — no particle churn
mist = ParticleField(
area=(0, 0, 800, 600),
profile=FOG_PROFILE, # plain data — copy and tweak for your own moods
color=(200, 50, 80),
global_alpha=0.5,
)
Features
- Map parsing — tilemaps, layers, objects, and autotile data from JSON
- Collision — tile-based (
CollisionRunner) and object-to-object (ObjectCollisionManager) with rect, circle, capsule, and polygon shapes - Physics —
PhysicsWorldwith static/kinematicBodysolids and one-way platforms - Particles — wrapped continuous fields (
ParticleField,FOG_PROFILE), burst emitters, alpha fades, and batch rendering (SpriteBatchRenderer) - Pathfinding — A*
Pathfinderover erodedNavGrids - Animation — frame-based
AnimationPlayer, plus aCamerawith centered/deadzone follow - Rendering — chunked
TileLayerRendererandLayerRenderStats
Requirements
- Python 3.10+
pygame-ce>=2.5(installed automatically)
Links
- Documentation: https://tilemap-parser.vercel.app/
- Repository: https://github.com/FluffyBrudy/tilemap-parser
Metadata
Release files for tilemap-parser 6.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tilemap_parser-6.0.0.tar.gz | 162.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tilemap_parser-6.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 257.0 kB
Release files / tilemap_parser-6.0.0.tar.gz
| Download URL | tilemap_parser-6.0.0.tar.gz |
|---|---|
| Size | 162.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fa5171eb8df6ccb55f0498cf6ac71830248ed14ee309df6dd1605dd62f9f287
|
|
BLAKE2b-256 checksum How to use checksums |
b5f3bc015e2ff28b9e4a72a0d4c54f2a488bf6781504e27542e1361e28c23a52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / tilemap_parser-6.0.0-py3-none-any.whl
| Download URL | tilemap_parser-6.0.0-py3-none-any.whl |
|---|---|
| Size | 94.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13911d2bdcb6a443cdf4307a299d28c37cfa619ee86e8b54003c6dc164e3acfd
|
|
BLAKE2b-256 checksum How to use checksums |
5cdbd2af0101a64dfda3ff5aaf0eb780380941ce82a3457add43113a6001dc56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|