A copy of 2048 game using SDL2
- c - column count (width)
- r - row count (height)
- s - resets top scores
Assuming developer versions of SDL2 (>= 2.0.12) and SDL2_ttf (>= 2.0.15) are installed:
mkdir build
cd build
cmake ..
make
cd ..
./build/2048 -r 4 -c 4
Assuming Visual Studio 2015 is installed: (via MinGW64)
mkdir build
cd build
cmake .. -G "Visual Studio 14 2015 Win64"
After this a ".sln" will be generated that can be opened with Visual Studio 2015. Right click on 2048 in project explorer and select as startup project. You can now run the demo from Visual Studio.
Install SDL2 library
brew install SDL2
brew install SDL2_ttf
To compile follow general linux instructions