- Esc: Close raytris
- Up/Down: Select game mode
- F: Change resolution
- Left/Right: Move falling piece left/right
- Up/Z: Turn falling piece clockwise/counterclockwise
- Down: Soft drop falling piece
- Space: Hard drop falling piece
- A: Turn falling piece 180 degrees
- C: Swap falling piece with hold piece
- Enter: (In Game)Pause game
- R: Restart Game
- TODO: Describe two players controls
You need to have a C++ 23 compiler, CMake and raylib installed. The cmake script will try to install it 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 raytris
to it cmake -S . -B build
to configure build directorycmake --build build
to buildcd build && ./raytris
to 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 raytris
to it emcmake cmake -S . -B build-web -DPLATFORM=Web
to configure build directorycmake --build build-web
to buildcd build-web && emrun raytris.html
to run :D