- Install SFML and C++
- Run
g++ -c main.cpp
- Run
g++ -o main -lsfml-graphics -lsfml-window -lsfml-system
- Execute using
./main
Key(s) | Function |
---|---|
A / Left | Move left |
D / Right | Move right |
W / Up / X | Rotate clockwise |
Z | Rotate counterclockwise |
Space | Hard drop |
S / Down | Soft drop |
C | Hold piece |
Esc / P | Pause |