A small SDL2-based tilemap editor. Use the menu to view or edit maps, navigate with the arrow keys, open the palette (P) and paint tiles with the mouse.
Prerequisites:
- A working g++ toolchain (MinGW or similar) available in PATH.
- SDL2 development files placed in the
sdl2folder of the project. This repository includessdl2/includeandsdl2/liband asdl2/binfolder with DLLs.
Steps:
- Create the
buildfolder (if it doesn't already exist):
mkdir build-
Copy the runtime DLLs and any helper files from
sdl2/binintobuildso the executable can find SDL at runtime: -
Copy the map files into the
buildfolder so the editor can find them (maps in this repo are named likemap*.txt):
Copy-Item -Path .\map*.txt -Destination .\build- Build the application from the project root (this compiles the main sources and links against SDL2, SDL2_image and SDL2_ttf):
g++ main.cpp mainView.cpp menu.cpp error.cpp -o build/main.exe -I sdl2/include -L sdl2/lib -lSDL2 -lSDL2main -lSDL2_image -lSDL2_ttf- Run the built executable from the
buildfolder:
.\build\main.exeAfter the build step the application binary will be in the build folder along with the SDL runtime DLLs and the map files.
