Skip to content

NorthZeroD/ray-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ray-games

Some games made with raylib by me.

Just for fun.

:D

Tetris

HOW TO BUILD

cd to repo dir first, then run

cmake -S . -B build && cmake --build build

You 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=clang

The tetris executable file is in the build dir

HOW TO START

./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

HOW TO PLAY

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

About

Some games made with raylib.

Resources

License

Stars

Watchers

Forks

Contributors