Skip to content

All23tor/raytris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raytris

Screenshot from 2024-12-23 22-28-01

Controls

Screenshot from 2025-01-25 19-41-58

Menu

  • Esc: Close raytris
  • Up/Down: Select

Single player

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

Two players

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

Depencencies

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.

Building

Building for Desktop

  1. Clone the repo with git clone https://github.com/All23tor/raytris/ and cd raytris to it
  2. cmake -S . -B build -DPLATFORM=Desktop to configure build directory
  3. cmake --build build to build
  4. cd build && ./raytris to run :D

Building for Web

Before building make sure you have the emscripten binaries in your path.

  1. Clone the repo with git clone https://github.com/All23tor/raytris/ and cd raytris to it
  2. emcmake cmake -S . -B build-web -DPLATFORM=Web to configure build directory
  3. cmake --build build-web to build
  4. cd build-web && emrun raytris.html to run :D

About

A familiar stacking game made with raylib.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published