Skip to content

PioterDev/Cetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cetris

Welcome to my repository, here you will find a pretty (terrible) implementation of the game similar to "Tetris".

For feedback, go to Issues -> Feedback.

Legal notice

This is not a commercial project and it never will be commercialized.

Textures for the game are made by myself and other contributors, while the soundtrack is made by GregorQuendel (see README in out/assets/audio) and used under the CC BY-NC 4.0 license (see reference).

Features

  • dynamic data structures (a queue to store future tiles)
  • I/O operations (a modular configuration file as well as asset and sound loading)
  • a window (written using SDL2)
  • dynamic video asset scaling based on the window size
  • variable game speed (basefallspeed option in the config)
  • delta time rendering (with rendering on a separate thread)

The config itself gives you all the freedom to customize keybinds, target FPS, window size, audio volume and game settings.

Currently, only Windows is supported because of the use of its threads. Linux support will be added if I ever decide to do it (which may be never).

How to build from source

  1. Download SDL2's MinGW Devel ZIP files for SDL itself, SDL_image and SDL_mixer.
  2. Change the LIBDIR variable in the makefile to a chosen directory.
  3. Run make.
  4. Wait.
  5. Done!