- Install vcpkg from https://github.com/microsoft/vcpkg
- Run
vcpkg install sfml:x64-windows
- Add the -DCMAKE_TOOLCHAIN_FILE CMake option
- Run CMake and Build
It's recommended to use the Visual Studio toolchain with architecture set to amd64.
- Install sfml
apt install sfml-dev
- Run CMake and Build
An example map file is included under the resources directory.
The map file is a text file that holds the tile index from a spritesheet. The example below shows the result based on the example spritesheet.
111,186*8,112
160,162*8,161
160,162*8,161
160,162*8,161
137,187*8,138
Using TileIndex*n
will cause the tile to be copied to the next n
tiles.
Example:
111,186*8,112
This will display the tile at index 186 8 times.
Prefixing a tile index with a .
will create a wall based tile.
Example:
.111,.186*8,.112
All the tiles in this row will be walls.