Skip to content

C010UR/ftxui-tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FTXUI Tetris

Overview

This is a TUI implementation of modern-ish Tetris with SRS rotation sytem :)

image
preview.mp4

This project is built with Meson. To install meson you can visit their GitHub page.

Dependencies

Compilation

To compile the project, first you need to build it using

meson setup {{ build directory }}

You can compile the project using

meson compile -C {{ build directory }}

Configuration

Configuration of the project is stored in the config.yaml file

config:
  easyMode: true # Turns on ghosts of the Tetrominos
  level: 1 # Game level from 1 to 15
  updatesPerSecond: 240 # Can help with performance and power consumption
  currentTheme: Autumn Haze # Chosen theme
  forceBackgroundColor: false # Forces background color
  storeDelayMs: 500 # Ms before tetromino is saved to the board
  softDropDelayMs: 50 # Detection rate of the soft drop press
  softDropGravityMsPerRow: 20 # Soft drop gravity 
  comboDelayMs: 6000 # Combo timeout
  debug: false # Debug mode
  themes:
    - name: Default
      mainColorsGradient: # headers gradient
        - "#4cd137"
        - "#4cce3c"
        - "#4ccb41"
        - "#4cc54a"
        - "#4bb85d"
        - "#4bab70"
        - "#42916a"
        - "#387763"
        - "#254f42"
      gameOverColorsGradient: # game over gradient
        - "#e84118"
        - "#d63c1f"
        - "#c43725"
        - "#a02d32"
        - "#57194b"
      mainColor: "#4a9e83"
      gameOverColor: "#57194b"
      backgroundColor: "#000000"
      valueColor: "#4bb365"
      trueColor: "#4cd137"
      falseColor: "#e84118"
      IColor: "#00a8ff"
      OColor: "#fbc531"
      TColor: "#9c88ff"
      JColor: "#2b2cd5"
      LColor: "#f28325"
      SColor: "#4cd137"
      ZColor: "#e84118"
controls:
  moveLeft: a
  moveRight: d
  rotateLeft: ","
  rotateRight: .
  swapHold: z
  softDrop: s
  hardDrop: " "
  forfeit: t
  retry: r