jxavierjorge / godot-png-to-tilemap

Godot Script that turns pixel sized images into tilemaps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PNG to TileMap - Godot Script

Godot Script that turns pixel sized images into tilemaps, inspired by this Tutorial from Brackeys.

This Script uses the Tilemap Node functionalities, so it gets the PNG data and run each pixel and inserts the tile index according to the color asigned.


How to Use It:

  1. Draw your level on your favorite image editor

Step1

  1. Drag and drop your map on the Map Texture field

Step2

  1. On the Colors field you can increase the array value and set the color code according to your map.

Step3

  1. The script will link the tilemap index with the colors index

Result

Final Result

RawBiggerMap

GenBiggerMap

About

Godot Script that turns pixel sized images into tilemaps


Languages

Language:GDScript 100.0%