Skip to content

Group project for object oriented programming S1.

AustinH-adl/OOP-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TetriCity OOP Project

A puzzle game that uses tetris style pieces. Written in C++.

How to build and run (Linux & WSL)

Clone the repository from GitHub:

git clone --recursive https://github.com/AustinH-adl/OOP-Project
cd OOP-Project
mkdir build

Install the required libraries:

sudo apt install build-essential git clang cmake pkg-config
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev

Fix issue with raylib library

mv src/misc/Rectangle.hpp libs/raylib-cpp/include/Rectangle.hpp

Build raylib:

cd libs/raylib
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
sudo make install

Build TetriCity:

cd ../../../build
cmake ..
make

Run TetriCity:

./TetriCity

How to play

When 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.

About

Group project for object oriented programming S1.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •