/tetris

Tetris game in C with SDL2

Primary LanguageCMIT LicenseMIT

Tetris

Some (shitty?) Tetris Game implementation.

Dependencies

  • SDL2 for the graphics. Install with aptitude: > sudo apt install libsdl2-dev.
  • SDL2_tff to display text. Install with aptitude: > sudo apt install libsdl2-ttf-dev.

Usage

  • Compile: > make all
  • Run: > ./tetris

TODO

  • Score counter
  • Display score counter @HappyTramp
  • Different color tetriminoes @Walker
  • Hard drop
  • Soft drop
  • Display a hard drop preview @HappyTramp
  • Display well borders @HappyTramp
  • Prettier and resizable graphic interface @HappyTramp
  • Tetriminoes generation from config file (ex: ./standard.tetriminoes)
  • Generate all rotations from one
  • (MacOS/Windows) support
  • Command line options (well dimensions, tetriminoes colors, ...)
  • Default options config files (in the libconfig format)
  • Add level and accelerate fall according to it.
  • Display level @HappyTramp
  • Generate next spawn in advance
  • Display next tetrimino spawn @HappyTramp
  • Game over when no more space @Walker
  • Display end game screen with scores @HappyTramp
  • Log previous games score @Walker

FIXME

  • Tetrimino rotation
  • Full lines clear

Fonts