8000 GitHub - olzhasar/sdl-tetris: Tetris game implemented with C and SDL-2 · GitHub
[go: up one dir, main page]

Skip to content

About

Tetris game implemented with C and SDL-2

Topics

Resources

Stars

34 stars

Watchers

2 watching

Forks

Latest commit

 

History

98 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL Tetris

An implementation of the classic Tetris game in the C programming language using the SDL-2 library

WebAssembly

The game has been ported to WebAssembly using Emscripten

Check out the Live Demo

Desktop preview

Preview

Installation

  1. Clone this repository to your system:
git clone https://github.com/olzhasar/sdl-tetris.git
  1. Install SDL2 and SDL2_ttf on your machine
  • On MacOS you can use Homebrew:
brew install sdl2 sdl2_ttf
  1. Compile and run the project code with make
cd sdl-tetris
make

Controls

  • Rotate: Up arrow, W
  • Move Left: Left arrow, A
  • Move Right: Right arrow, D
  • Soft Drop: Down arrow, S
  • Hard drop: Space
  • Quit: ESC

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Tetris game implemented with C and SDL-2

Topics

Resources

Stars

34 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages

0