A puzzle game that uses tetris style pieces. Written in C++.
Clone the repository from GitHub:
git clone --recursive https://github.com/AustinH-adl/OOP-Projectcd OOP-Projectmkdir buildInstall the required libraries:
sudo apt install build-essential git clang cmake pkg-configsudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-devFix issue with raylib library
mv src/misc/Rectangle.hpp libs/raylib-cpp/include/Rectangle.hppBuild raylib:
cd libs/raylibmkdir build && cd buildcmake -DBUILD_SHARED_LIBS=ON ..makesudo make installBuild TetriCity:
cd ../../../buildcmake ..makeRun TetriCity:
./TetriCityWhen in the game, press play to go to level select or press tutorial to learn more about playing the game.
Once you have selected a level, you can move your current piece by using the arrow key and can rotate it using the 'R' key.
Once in place, press the Enter key to fix the block in place and get a new block.
For each block placed, your score increases. Try and place all of them to win!
You can also use the save and load buttons to save the state of the puzzle and load it again.