SLED: Stupid Level EDitor
The program is at a very WIP stage.
- Small: a relatively flexible editor to make maps
- Export functionality: export to a
.sled
file or a header file - Easy to use
- A very simple API which allows you to use maps on games you make
- Made with raylib
SLED can be called directly with no arguments and it will load up the "UI mode", which will ask either for a new map or ask you to load a map
However, SLED can also be used from the command line.
Calling
sled new
Will open up a small interface which will ask for input, then after all fields are completed, the program will run.
Calling
sled load
Will look for a map.sled
file and a map.sledi
file on the current working directory.
- Use your left mouse button to set tiles
- Use your right mouse button to clear tiles
- Use the mouse wheel to zoom in or out
- Hold shift and use the left mouse button to pan over the map
- Use C and V to change the tileset index (this will be changed)
- Use G to turn the grid on or off
SLED has a vim-like way to export your maps. Inside the editor, there is a small textbox which will ask for commands. The commands are
tobin
toheader
SLED has a very simple API which allows you to use your maps on your games. It can be found under the api directory, with its' respective examples.
typedef struct sled_map {
unsigned char *grid;
int width;
int height;
int tile_width;
int tile_height;
const char *tilesheet;
} sled_map;
sled_map sled_load_map(const char *map_file, const char *map_info_file);
void sled_free_map(sled_map map);
- Run
./setup.sh
to build raylib. - Run
./build.sh
to compile the project.
- Download w64devkit:
w64devkit-x.x.x.zip
for 64-bitw64devkit-i686-x.x.x.zip
for 32-bit
- Extract w64devkit and run
w64devkit.exe
. - Inside w64devkit, go to the directory where you cloned sled.
- Run
./setup.sh
to build raylib. - Run
./build.sh
to compile the project.
- Install
mingw-w64
using your package manager. - Run
TARGET=Windows_NT ./setup.sh
to build raylib. - Run
TARGET=Windows_NT ./build.sh
to compile the project.
- 2D tilesheet support (current is 1D)
- Multiple tiles drawing/erasing
Font - Ubuntu Mono R
sled is licensed under the GPL-2.0 license.