- Esc: Close raytris
- Up/Down: Select
| Action | Keys |
|---|---|
| Shift Left/Right | Left/Right |
| Rotate CW/CCW/180 | Up/Z/A |
| Soft drop | Down |
| Hard drop | Space |
| Swap piece | C |
| Pause | Enter |
| Restart | R |
| Action | P1 Keys | P2 Keys |
|---|---|---|
| Shift Left/Right | A/S | J/L |
| Rotate CW/CCW/180 | W/Q/R | I/U/P |
| Soft drop | S | K |
| Hard drop | Z | M |
| Swap piece | E | O |
| Pause | Enter | Enter |
You need to have a C++ 23 compiler, CMake and raylib installed. The cmake script will try to install raylib for you, but you still need to have raylib's dependencies installed. If you are building for Web you will also need emscripten.
- Clone the repo with
git clone https://github.com/All23tor/raytris/andcd raytristo it cmake -S . -B build -DPLATFORM=Desktopto configure build directorycmake --build buildto buildcd build && ./raytristo run :D
Before building make sure you have the emscripten binaries in your path.
- Clone the repo with
git clone https://github.com/All23tor/raytris/andcd raytristo it emcmake cmake -S . -B build-web -DPLATFORM=Webto configure build directorycmake --build build-webto buildcd build-web && emrun raytris.htmlto run :D

