Skip to main content

Pygame tilemap editor with SVG icons, professional UI, and sprite animation tools

Project description

tilemap-editor

[!WARNING] This is mostly vibe coded as working with ui isnt so easy in pygame. Somehow it works for me. Though it took decent time as this was initially too buggy(which still is as expected). Just an experiment and keep customizing for my need. PRs are welcome.

tilemap-editor is a pygame-based map editor focused on fast iteration for 2D games. tilemap-parser to parse this editor. (https://pypi.org/project/tilemap-parser/)[https://pypi.org/project/tilemap-parser/]

What it includes

  • Multi-layer tile/object map editing with visual layer management
  • Decent enough UI with SVG icons, consistent fonts, and modern design
  • Sprite animation editor (tilemap-anim-editor) with frame-by-frame editing
  • Built-in tools: File manager, error console, image viewer, automapper
  • Font management with auto-selected coding fonts for clarity
  • Icon system with 26+ SVG icons and geometric fallbacks
  • JSON save/load compatible with this editor
  • Decent console toggled with ctrl + ` for error/warning/logs/debugging

Key Features

UI Improvements

  • SVG icons throughout the interface
  • Bold, auto-selected coding fonts (JetBrains Mono, Fira Code, Consolas)

Animation Editor

  • Frame picker with visual thumbnails
  • Playback controls (play, pause, stop, loop)
  • FPS control and onion skinning
  • Timeline with marker support
  • Export to JSON format

Map Editor

  • Pan, zoom, reset, and fit-to-view controls
  • Grid toggle with visual feedback
  • Layer management with visibility controls
  • Tileset browser with preview
  • Autotile support for rapid level design

Install (local/dev)

Using Virtual Environment (Recommended)

For Linux and macOS:

# Create virtual environment
python3 -m venv .venv

# Activate virtual environment
source .venv/bin/activate

# Install in development mode
pip install -e .

# Deactivate when done
deactivate

For Windows:

# Create virtual environment
python -m venv .venv

# Activate virtual environment
.venv\Scripts\activate

# Install in development mode
pip install -e .

# Deactivate when done
deactivate

Direct Install (Not Recommended)

pip install -e .

Package installtion from pypi

pip install tilemap-editor
pip install tilemap-parser

Run editor

# Main tilemap editor
tilemap-editor

# Standalone animation editor
tilemap-anim-editor path/to/spritesheet.png --tile-size 32x32

In-game debug usage

from editor import Editor

if __name__ == "__main__":
    dbg = Editor()
    dbg.run()

Runtime split

This package is editor-first. Runtime parser/loading modules can be moved into a separate package later.

Icons & Assets

The editor includes 26+ SVG icons from the Godot icon set:

  • File operations: folder, file, image, save, load, duplicate
  • Playback: play, pause, stop, loop
  • UI controls: close, plus, warning, info, check, error
  • Map tools: pan, zoom in/out, reset, fit, grid
  • All icons have geometric fallbacks if SVG loading fails

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tilemap_editor-2.0.8.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

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

tilemap_editor-2.0.8-py3-none-any.whl (228.7 kB view details)

Uploaded Python 3

File details

Details for the file tilemap_editor-2.0.8.tar.gz.

File metadata

  • Download URL: tilemap_editor-2.0.8.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for tilemap_editor-2.0.8.tar.gz
Algorithm Hash digest
SHA256 4d705ae323d02d194747f71af04ce5beb762a0428e49e45ee441914f27958ee9
MD5 55378407b24103b2a090d2e57668d02f
BLAKE2b-256 ef1b4ed3c64c294573f56ca4a6573a39c3d73ffddbfd66e2b48ea70bacaf2ffc

See more details on using hashes here.

File details

Details for the file tilemap_editor-2.0.8-py3-none-any.whl.

File metadata

  • Download URL: tilemap_editor-2.0.8-py3-none-any.whl
  • Upload date:
  • Size: 228.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for tilemap_editor-2.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1e85a3726b00f6beed47c1c1efe5e4588b39f99c9b236c6e41a576a5b6956993
MD5 e3466deddcd9fdd44b0571146507be8f
BLAKE2b-256 dc12a9c764e0315e5af06b7e09d234059527d5744362d4d015cba9dff430cb96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page