Some games made with raylib by me.
Just for fun.
:D
cd to repo dir first, then run
cmake -S . -B build && cmake --build buildYou can also specify build type and C compiler with cmake flag -DCMAKE_BUILD_TYPE and -DCMAKE_C_COMPILER
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clangThe tetris executable file is in the build dir
./tetris --- Default table size: 12 * 16
./tetris [width:int[4,60]] [height:int[4,60]] --- Custom table size
./tetris [width:int[4,60]] [height:int[4,60]] [scale:float(0.0,1.0]] --- Custom table size and interface scale factor
| HOTKEY | DETAILS |
|---|---|
H A LEFT |
Move left |
L D RIGHT |
Move right |
J S DOWN |
Rotate left (anticlockwise) |
K W UP |
Rotate right (clockwise) |
; LSHIFT RSHIFT |
Soft drop |
SPACE |
Hard drop |
P ESC |
Pause game |
R |
Restart game |
CTRL + Q |
Quit game |