aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h87
1 files changed, 47 insertions, 40 deletions
diff --git a/src/config.h b/src/config.h
index 19726d5..bd6fc31 100644
--- a/src/config.h
+++ b/src/config.h
@@ -1,46 +1,53 @@
-// 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
-
-#ifdef GENERATE_PPM_TILES
- int generated_tile_colors[2][3] = {
- { 0, 32, 63 }, // blank | default 255
- { 173, 239, 209 } // not blank | defalut 0
- // { 255, 255, 255 },
- // { 0, 0, 0 }
- };
-#endif
+// name of the tileset, localated in files/tilesets directory
+#define TILESET_NAME "black-white"
+#define DIMENTIONS 2
+#define TILE_TYPES 5
-// 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 (down) |
-| ... X symetry | ### T symetry |
-| ... | .#. |
-| -------------------+--------------------------|
-| 2: .#. plus | 3: ... line |
-| ### I 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
-
- */
+tile tiles[TILE_TYPES] = {
+ { "empty" , 'X', { 0, 0, 0, 0 } },
+ { "t" , 'T', { 0, 1, 1, 1 } },
+ { "cross" , 'X', { 1, 1, 1, 1 } },
+ { "line" , 'I', { 0, 1, 1, 0 } },
+ { "corner" , 'T', { 1, 1, 0, 0 } }
+};
// Array for which tiles to include the tiles.dat
int tiles_to_load[] = {
- 2,
- 3,
- 4,
+ 3, 4
};
+
+// // name of the tileset, localated in files/tilesets directory
+// #define TILESET_NAME "circuit"
+
+// #define DIMENTIONS 2
+// #define TILE_TYPES 14
+
+// // pcb green - 0
+// // green - 1,
+// // grey - 2,
+// // black - 3,
+// // other - 4, 5
+// tile tiles[TILE_TYPES] = {
+// { "bridge" , 'I', { 1, 2, 2, 1 } },
+// { "component" , 'X', { 3, 3, 3, 3 } },
+// { "connection" , 'T', { 1, 4, 5, 3 } },
+// { "corner" , 'T', { 0, 0, 4, 5 } },
+// { "dskew" , 'I', { 1, 1, 1, 1 } },
+// { "skew" , 'T', { 1, 1, 0, 0 } },
+// { "substrate" , 'X', { 0, 0, 0, 0 } },
+// { "t" , 'T', { 0, 1, 1, 1 } },
+// { "track" , 'I', { 1, 0, 0, 1 } },
+// { "transition" , 'T', { 2, 0, 0, 1 } },
+// { "turn" , 'T', { 1, 1, 0, 0 } },
+// { "viad" , 'I', { 0, 1, 1, 0 } },
+// { "vias" , 'T', { 1, 0, 0, 0 } },
+// { "wire" , 'I', { 0, 2, 2, 0 } },
+// };
+
+
+// // Array for which tiles to include the tiles.dat
+// int tiles_to_load[] = {
+// 0, 1, 2, 3, 4, 5, 6,
+// 7, 8, 9, 10, 11, 12, 13,
+// };