Skip to main content

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
  • PhysicsPhysicsWorld with static/kinematic Body solids and one-way platforms
  • Particles — wrapped continuous fields (ParticleField, FOG_PROFILE), burst emitters, alpha fades, and batch rendering (SpriteBatchRenderer)
  • Pathfinding — A* Pathfinder over eroded NavGrids
  • Animation — frame-based AnimationPlayer, plus a Camera with centered/deadzone follow
  • Rendering — chunked TileLayerRenderer and LayerRenderStats

Requirements

  • Python 3.10+
  • pygame-ce>=2.5 (installed automatically)

Links

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.1.0.tar.gz (171.0 kB view details)

Uploaded Source

Built Distribution

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

tilemap_parser-5.1.0-py3-none-any.whl (117.6 kB view details)

Uploaded Python 3

File details

Details for the file tilemap_parser-5.1.0.tar.gz.

File metadata

  • Download URL: tilemap_parser-5.1.0.tar.gz
  • Upload date:
  • Size: 171.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tilemap_parser-5.1.0.tar.gz
Algorithm Hash digest
SHA256 2828c40db1901a1a5140b5606d82cf51eaa7d5c562d3e11e77ac73a6e6022ac1
MD5 c7cbe747b99d0bf1f04006598f4644c6
BLAKE2b-256 66ccded0b43bfba1ded6b1998ef47211935b4dbaf061f1e1a9db70e4970de15a

See more details on using hashes here.

File details

Details for the file tilemap_parser-5.1.0-py3-none-any.whl.

File metadata

  • Download URL: tilemap_parser-5.1.0-py3-none-any.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tilemap_parser-5.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 13ec230031d0ac76272d8ff92d594e34b7e032176b30c0e3bb2c4f9982722954
MD5 8a930e2066fdfe06d93a490542bc9cca
BLAKE2b-256 8b85aa7150dab1f5402896f701fdba8d5cfc35880ee4c0828b23d5f90a89bd81

See more details on using hashes here.

Release history Release notifications | RSS feed

5.2.0

2 files

This release

5.1.0 This release

2 files

5.0.4

2 files

5.0.3

2 files

5.0.2

2 files

5.0.1

2 files

5.0.0

2 files

4.2.8

2 files

4.2.7

2 files

4.2.6

2 files

4.2.5

2 files

4.2.4

2 files

4.2.3

2 files

4.2.2

2 files

4.2.1

2 files

4.2.0

2 files

4.1.0

2 files

4.0.0

2 files

3.1.23

2 files

3.1.22

2 files

3.1.21

2 files

3.1.20

2 files

3.1.19

2 files

3.1.18

2 files

3.1.17

2 files

3.1.16

2 files

3.1.15

2 files

3.1.14

2 files

3.1.13

2 files

3.1.12

2 files

3.1.10

2 files

3.1.9

2 files

3.1.8

2 files

3.1.7

2 files

3.1.6

2 files

3.1.5

2 files

3.1.4

2 files

3.1.3

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

2 files

3.0.0

2 files

2.0.4

2 files

2.0.3

2 files

2.0.1

2 files

2.0.0

2 files

1.1.1

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page