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 5.2.1
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-5.2.1.tar.gz | 179.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tilemap_parser-5.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 300.7 kB
Release files / tilemap_parser-5.2.1.tar.gz
| Download URL | tilemap_parser-5.2.1.tar.gz |
|---|---|
| Size | 179.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
547c8371611a8f69405ae4063e1a088dce65584fc4ca3ad6ae7087dbd340a776
|
|
BLAKE2b-256 checksum How to use checksums |
cb78d5da0a7619264d6f0eb4bf4a6840d9949a0b53dde5ab79144b7d60ff4c62
|
| 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-5.2.1-py3-none-any.whl
| Download URL | tilemap_parser-5.2.1-py3-none-any.whl |
|---|---|
| Size | 121.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84898e7b1a9e32e0e74b2b9e7b05b412cb553424f050d8af83607bc3c20bd081
|
|
BLAKE2b-256 checksum How to use checksums |
54925f082174974226e22e803c9b81a57f50f42ba794806a6e9650a31a47eb0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|