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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tilemap_parser-5.0.4.tar.gz
(166.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tilemap_parser-5.0.4.tar.gz.
File metadata
- Download URL: tilemap_parser-5.0.4.tar.gz
- Upload date:
- Size: 166.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
142a2e06099e9405454c52f66e9659af202284936ca0890d197d8a2d5c300f47
|
|
| MD5 |
801c2e1b0a0e02dbbde947274566b048
|
|
| BLAKE2b-256 |
98bbf460ea1b8c6b793d306ca8befef1b5d733c444f6414259f5dca72148ba7c
|
File details
Details for the file tilemap_parser-5.0.4-py3-none-any.whl.
File metadata
- Download URL: tilemap_parser-5.0.4-py3-none-any.whl
- Upload date:
- Size: 115.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ebc2e286876e3e6aed678afb39921dd5c70169b3b9a7de170493d6ac54f03d1
|
|
| MD5 |
a63e0d27b0ed9d2a5a10e53918fd9254
|
|
| BLAKE2b-256 |
684958762b9b4d03140a08b7c69b7b4a4983ca4de3036fd3833cdeb728651cd9
|