From 837dbeaccd33fdf49f8bbe312226bddabe0f92c4 Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 11 Aug 2022 22:31:34 +0300 Subject: even more user friendly --- src/config.h | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index 8e2910b..4135b5c 100644 --- a/src/config.h +++ b/src/config.h @@ -1,23 +1,27 @@ -// comment this if you dont want to -// generate the tiles, only the -// tiles.dat file -#define GENERATE_PPM_TILES +// comment this if you dont want to generate the tiles, but +// want to use the tileset defined in the TILESET_NAME directive +// #define GENERATE_PPM_TILES + +// name of the tileset, localated in files/tilesets directory +// must be defined only when GENERATE_PPM_TILES is not +// if both arent defined, only tiles.dat will be generated +#define TILESET_NAME "knots" /* The TILES are ------------------------------------------------ -|0: ... blank | 1: ... T-piece (down) | -| ... X symetry | ### T symetry | -| ... | .#. | -|-------------------+-------------------------| -|2: .#. cross | 3: ... bar | -| ### X symetry | ### I symetry | -| .#. | ... | -|-------------------+-------------------------| -|4: .#. corner | | -| .## T symetry | | -| ... | | ------------------------------------------------ +-------------------------------------------------- +| 0: ... blank | 1: ... t (down) | +| ... X symetry | ### T symetry | +| ... | .#. | +| -------------------+--------------------------| +| 2: .#. plus | 3: ... line | +| ### X symetry | ### I symetry | +| .#. | ... | +| -------------------+--------------------------| +| 4: .#. corner | | +| .## T symetry | | +| ... | | +-------------------------------------------------- The number are the tile indexes, the values that you need to put in the tiles_to_load array @@ -26,6 +30,7 @@ need to put in the tiles_to_load array // Array for which tiles to include the tiles.dat int tiles_to_load[] = { - 0, - 1, + 2,g + 4, + 3, }; -- cgit v1.2.3