Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tanguy-fgl/tetris

A reproduction of Tetris written in C++ using the SFML library
https://github.com/tanguy-fgl/tetris

opengl sfml sfml-game tetris tetris-clone

Last synced: 27 days ago
JSON representation

A reproduction of Tetris written in C++ using the SFML library

Awesome Lists containing this project

README

        

Tetris
===
A Tetris clone written in C++ using SFML library

## ๐Ÿ’พInstallation

| OS | Download |
| --- | --- |
| Windows 64bit | [download](https://github.com/tanguy-fgl/Tetris/releases/latest) |

### Tested Platform
- software
```
OS: Windows 11 23H2 (22631.4460)
```
- hardware
```
CPU: Intel (R) Core i5-8500 3.00 GHz
GPU: Intel (R) UHD Graphics 630 (8 GB)
RAM: 16 GB
```

## ๐ŸŽฎControls
- In a party
```
UP: changes the orientation of the block
LEFT/RIGHT: moves the block to the left or to the right
DOWN: moves down the block faster
```
- When a game is finished
```
R: starts a new game
```

## ๐Ÿ”จHow to build
- IDE
```
CodeBlocks 20.03
```
- Libraries
```
SFML 2.6.2
- sfml-graphics-s
- sfml-window-s
- sfml-audio-s
- sfml-system-s
- winmm
- opengl32
- freetype
- gdi32
- openal32
- flac
- vorbisenc
- vorbisfile
- vorbis
- ogg
```
- Compiler
```
WinLibs MSVCRT 13.1.0 (64-bit)
```

## ๐Ÿ“Directory Hierarchy
```
|โ€”โ€” .gitattributes
|โ€”โ€” .gitignore
|โ€”โ€” Arial.ttf
|โ€”โ€” audio
| |โ€”โ€” music.ogg
|โ€”โ€” bin
| |โ€”โ€” Debug
| |โ€”โ€” Tetris.exe
| |โ€”โ€” Release
| |โ€”โ€” Arial.ttf
| |โ€”โ€” audio
| |โ€”โ€” music.ogg
| |โ€”โ€” images
| |โ€”โ€” background.png
| |โ€”โ€” frame.png
| |โ€”โ€” gameover.jpg
| |โ€”โ€” Thumbs.db
| |โ€”โ€” tiles.png
| |โ€”โ€” openal32.dll
| |โ€”โ€” Tetris.exe
| |โ€”โ€” tetris.png
| |โ€”โ€” Thumbs.db
|โ€”โ€” icon.rc
|โ€”โ€” images
| |โ€”โ€” background.png
| |โ€”โ€” frame.png
| |โ€”โ€” gameover.jpg
| |โ€”โ€” Thumbs.db
| |โ€”โ€” tiles.png
|โ€”โ€” main.cpp
|โ€”โ€” obj
| |โ€”โ€” Debug
| |โ€”โ€” icon.res
| |โ€”โ€” main.o
| |โ€”โ€” Release
| |โ€”โ€” icon.res
| |โ€”โ€” main.o
|โ€”โ€” openal32.dll
|โ€”โ€” sfml-audio-2.dll
|โ€”โ€” sfml-audio-d-2.dll
|โ€”โ€” sfml-graphics-2.dll
|โ€”โ€” sfml-graphics-d-2.dll
|โ€”โ€” sfml-network-2.dll
|โ€”โ€” sfml-network-d-2.dll
|โ€”โ€” sfml-system-2.dll
|โ€”โ€” sfml-system-d-2.dll
|โ€”โ€” sfml-window-2.dll
|โ€”โ€” sfml-window-d-2.dll
|โ€”โ€” Tetris.cbp
|โ€”โ€” Tetris.depend
|โ€”โ€” tetris.ico
|โ€”โ€” Tetris.layout
|โ€”โ€” tetris.png
|โ€”โ€” Thumbs.db
```

## ๐Ÿ“šReferences
- [Let's make 16 games in C++: TETRIS](https://www.youtube.com/watch?v=zH_omFPqMO4)
- [SFML 2.6.2 documentation](https://www.sfml-dev.org/documentation/2.6.2/topics.php)

## ๐Ÿ“œLicense

## โ˜Ž๏ธCiting
If you use my Tetris clone game, please add the following information to your blog / video description.
```
Game by Tanguy Frageul - Play it for free: https://tanguy-fgl.github.io/
```