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 game mode
  • F: Change resolution

Single player

  • 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

Two players

  • TODO: Describe two players controls

Depencencies

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.

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