diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-04-15 14:04:03 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-04-15 14:04:03 +0300 |
commit | 0333b7fa851e222c4a4d183ef9ae6d6dab7559cb (patch) | |
tree | 12942f8e71351ec3e08674fc9159fa7a08d7a3f5 /src/tile.c | |
parent | 7f0647e07b6a14e6f4a5ace6dbd4e688f424b8dd (diff) | |
download | carcassonne-engine-c-0333b7fa851e222c4a4d183ef9ae6d6dab7559cb.tar.gz |
feat: add game tileset
Diffstat (limited to 'src/tile.c')
-rw-r--r-- | src/tile.c | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -39,3 +39,29 @@ void rotate_tile(Tile* tile, int increment) { } } +void initialize_tileset(Tile* tileset) { + int index = 0; + for (int i = 0; i < 4; i++) tileset[index++] = (Tile){ "FFFF", 'F', 0 }; + for (int i = 0; i < 5; i++) tileset[index++] = (Tile){ "CFFF", 'F', 0 }; + for (int i = 0; i < 1; i++) tileset[index++] = (Tile){ "FCFC", 'C', 0 }; + for (int i = 0; i < 2; i++) tileset[index++] = (Tile){ "FCFC", 'C', 1 }; + for (int i = 0; i < 3; i++) tileset[index++] = (Tile){ "CCFF", 'C', 0 }; + for (int i = 0; i < 2; i++) tileset[index++] = (Tile){ "CCFF", 'C', 1 }; + for (int i = 0; i < 2; i++) tileset[index++] = (Tile){ "CCFF", 'C', 1 }; + for (int i = 0; i < 3; i++) tileset[index++] = (Tile){ "CFCF", 'F', 0 }; + for (int i = 0; i < 2; i++) tileset[index++] = (Tile){ "CCFF", 'F', 0 }; + for (int i = 0; i < 1; i++) tileset[index++] = (Tile){ "FFRF", 'R', 0 }; + for (int i = 0; i < 1; i++) tileset[index++] = (Tile){ "FFRF", 'R', 0 }; + for (int i = 0; i < 8; i++) tileset[index++] = (Tile){ "FRFR", 'R', 0 }; + for (int i = 0; i < 9; i++) tileset[index++] = (Tile){ "FFRR", 'R', 0 }; + for (int i = 0; i < 4; i++) tileset[index++] = (Tile){ "FRRR", '+', 0 }; + for (int i = 0; i < 1; i++) tileset[index++] = (Tile){ "RRRR", '+', 0 }; + for (int i = 0; i < 4; i++) tileset[index++] = (Tile){ "CRFR", 'R', 0 }; + for (int i = 0; i < 3; i++) tileset[index++] = (Tile){ "CFRR", 'R', 0 }; + for (int i = 0; i < 3; i++) tileset[index++] = (Tile){ "CRRF", 'R', 0 }; + for (int i = 0; i < 3; i++) tileset[index++] = (Tile){ "CRRR", '+', 0 }; + for (int i = 0; i < 3; i++) tileset[index++] = (Tile){ "CCRR", 'R', 0 }; + for (int i = 0; i < 2; i++) tileset[index++] = (Tile){ "CCRR", 'R', 1 }; + for (int i = 0; i < 1; i++) tileset[index++] = (Tile){ "CCRC", 'C', 0 }; + for (int i = 0; i < 2; i++) tileset[index++] = (Tile){ "CCRC", 'C', 1 }; +} |