Skip to content

nklbdev/godot-enchanced-tile-map-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enchanced TileMap editor for Godot 3.5x

en ru

Hello everyone Godot users! I'm developing an alternative tile map editor for the Godot engine v3.5+.

It is a very early alpha version. I will be glad to your wishes and suggestions for its improvement!

Features:

  • Rectangular selection, continuous selection, combination of selections.
  • Integrated powerful tile palette
  • Drawing with patterns
  • Undo-Redo support
  • Saving patterns to the bottom panel, tileset metadata (not yet), or copying to plain text
  • Rotation and flipping patterns at all possible angles with tiles in their cells and without them (and powerful set of keyboard shortcuts for it)
  • 3 auto-tilers: Classic, Improved and Terrain (their algorithms are implemented, but not integrated yet)

Main view of the plugin interface

Godot Enchanced TileMap Editor eraly alpha presentation

When you select a TileMap instance in the scene tree, the bottom panel "Tile Map" appears, which contains tools and sub-palettes.

Tools

Selection

  • Rectangular Selection - everyone's favorite rectangular selection))
  • Continous Selection (Magic Wand) - so far not a very useful tool. But smart pattern selection will be added later

You can combine selections by Shift (union), Ctrl+Shift (intersection) and Alt+Shift (subtraction)

Also you can copy selection to clipboard as serialized pattern. In this case, the pattern will be immediately ready for drawing in all tools.

You can draw it on your TileMap, or paste it into "Patterns" subpalette or or in any other place as JSON text.

Drawing

  • Pattern Brush - just a brush. But it switches to the Line when Ctrl is pressed and the Rectangle when Ctrl+Shift is pressed.
  • Pattern Line - draws line. Behaves differently for a single tile and a complex pattern on offsetted maps. A single tile forms a continuous line, as in Godot 4
  • Pattern Rectangle - well known rectangle)
  • Pattern bucket fill - allow continous filling and offset pattern origin by moving mouse with holding LMB
  • Tile Picker (not implemented yet)
  • Eraser - just an eraser
  • Random Tiles - modifier with Scattering option (not implemented yet)
  • Rotate pattern menu - allows rotate pattern at all possible angles for current cell_half_offset
  • Flip pattern menu - same as "Rotate" but for pattern mirroring

Examples of pattern transformation

"By Texture" tiles subpalette

Provides tiles layout on textures, how they are marked up in TileSet. Best choice to select patterns for rectangular maps.

Texture tiles layout

"Individual" tiles subpalette

Provides tiles layout on TileMap which have similar mode or custom_cell_transform and cell_half_offset as in current TileMap. It is convenient to choose patterns for non-rectangular maps on it.

Tile map tiles layout

"Patterns" subpalette

This palette is for saving patterns copied from the map. It is already working, but visually it is not yet ready. Patterns can be pasted here using Ctrl+V shortcut. Patterns can be pasted not only here, but anywhere as a regular JSON-text. You can exchange them immediately through any messenger!

Patterns collection buffer

Autotiles

(algorithms are implemented, but not integrated yet)

Personalization

Plugin section in Project Settings

You can choose drawing limits, grid and cells colors and grid fragments sizes.

Installation

Simply download or clone this repository and copy the contents of the addons folder to your own project's addons folder.

Then enable the plugin on the Project Settings.