Just another Tetris version I made for fun. The drop sound effect of the tetronomino is me slamming my desk, I didn't find the real sound effect online, so I had to improvise. I also did the font and textures myself.
When the program is closed, it creates a Tetris.save
(if one doesn't already exist) file which will keep track of all highscores and typed names.
Only on windows.
Compile using linker options: -lgdi32 -lwinmm
Navigate to the where you have extracted the zip file to with your console window using cd
Be sure to have gcc
command available, just type gcc
to confirm.
When this is not the case, you have to use set path=%path%;<file path of gcc.exe>
gcc main.c -lgdi32 -lwinmm & a
will compile and execute the program.
So, when you you used above steps to compile, the program should already run.
When you don't have gcc
to compile, download the project as zip, extract all files into one folder and run Tetris.exe
WASD or arrow keys to move
A, LEFT - Move left
D, RIGHT - Move right
W, UP, I - Rotate clockwise
J - Rotate counter-clockwise
S, DOWN - Fast fall
M - Mute music
N - Mute all music and sounds
C - Disable colors
RETURN, ESCAPE, P - Pause
I intended four possible setups:
- One hand on WASD
- One hand on the arrow keys
- One hand on ASD, a second hand on IJ
- One hand on the arrow keys, a second hand on IJ