Skip to content

A tilemap editor in C++ and SDL to use with a 2d game engine

Notifications You must be signed in to change notification settings

djtanner/TileMapEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Tilemap Editor for 2d games

Screenshot 2024-07-08 at 10 55 14 PM

Created using C++ and SDL.

Instructions

Put your spritesheet in the assets folder. (See desert.png as an example.)

To run it, use the make file. ('make', followed by 'make run') Select a tile from the source in the bottom window (the selected tile will show a dark overlay) and click where to place it in the map. Delete by right clicking on the map.

Save using Ctrl + S, and you will get an output file map.txt in the following format:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0 0 0 0 0 0 0 2 2 2 0 0 0 0 0 0 0 0 0 0 
0 0 0 3 4 4 2 5 5 2 2 2 2 0 0 0 0 0 0 0 
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 
22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22

About

A tilemap editor in C++ and SDL to use with a 2d game engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published