A Tetris game made in C++ with the SFML library. It was a project for an IT university course in 2014 (DUT Informatique, IUT de Lens, Université d’Artois).
Website : https://sfmltetris.mbaloup.fr/
- Louis Behague (Babanar) : developer
- Marc Baloup (marcbal) : developer, project manager
- Mathieu Blanquin (Devil62) : mock-ups and old project manager
This projet is not yet set up for 64 bits compilation on Windows.
-
Install Mingw-w64 (winlibs) GCC 13.1.0 (32-bit). Here, you have 2 options:
- Add the
<mingw-install-dir>/bin
directory in your PATH environment variable, - Or put the absolute path of the compiler in the file
Cpp/Makefile.win
.
- Add the
-
Go to the
Cpp
folder and compile withmingw32-make -f Makefile.win release
. -
You can find the built project in
bin/win32-release
.
Works on Ubuntu 24.04 LTS (with GCC 13 and SFML 2.6.1 in the apt repository).
- Install the necessary packages:
sudo apt install make g++-13 libglu1-mesa-dev libopenal-dev libsfml-dev
. - Go to the
Cpp
folder and compile withmake -f Makefile.linux release
. - You can find the built project in
bin/linux64-release
.
You can build the Linux version from any OS supporting Docker. You need to have Docker installed and running (Docker Desktop on Windows). On Windows, you also need Git-Bash, to run the provided Bash script.
- Go to the
Cpp
folder and run./make-linux64-with-docker.sh release
. - You can find the built project in
bin/linux64-release
.
A Wiki giving guideling for making a standard tetris game: http://tetris.wikia.com/wiki/Tetris_Guideline
Tutorial to make a simple tetris game in C (fr): http://tfeysal.wordpress.com/2011/01/10/programmer-un-tetris-en-c-partie-1/ (there is no part 2)
The Tetris wikipedia article (fr): http://fr.wikipedia.org/wiki/Tetris