Created as a project for UNSW COMP1511 course.
Fully functional traditional tetris with 3D visuals using OpenGL.
- OpenGL
- Make
- Clang or GCC
- GLFW3 : Click here to download
- On Mac can be downloaded via Hombrew with
brew install glfw3
- On Ubuntu can be downloaded via
sudo apt-get install glfw3
- On Mac can be downloaded via Hombrew with
- Freetype2 : Click here to download
- On Mac can be downloaded via Homebrew with
brew install freetype
- Tutorial for installing on Ubuntu
- On Mac can be downloaded via Homebrew with
- CMake : Click here to download
- On Mac can be downloaded via Homebrew with
brew install cmake
- Tutorial for installing on Ubuntu
- On Mac can be downloaded via Homebrew with
- OpenAL Soft : Click here to download
- On Mac can be downloaded via Hombrew with
brew install openal-soft
- On Ubuntu can be downloaded via
sudo apt-get install openal-soft
- On Mac can be downloaded via Hombrew with
- Install all of the dependencies above if you have not already.
- Clone the repository via the command line with
git clone https://github.com/Balajanovski/3D-Tetris.git
- Navigate to the repository root directory
- Type
cmake .
to generate a makefile - Type
make
to build the project - Run the game by typing
./3d-tetris
Left Arrow : Move tetromino left
Right Arrow : Move tetromino right
Up Arrow : Rotate tetromino
Down Arrow : Move tetromino down quicker
Space Bar : Drop tetromino
Esc Key : Escape game
P key : Pause game
R key : Reset game
- Theme A : Nintendo. From Gameboy Advanced Tetris.
- Themes B, C, D : Youtube Channel Spoon.exe.
- Gameover music : Youtube Channel Cosmic Famicommunist
- SFX created using Bfxr