Skip to content

🕹️ A toy project implementing a simple tetris clone in C for learning SDL 2.x.

License

Notifications You must be signed in to change notification settings

dashed/tetris-sdl-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tetris-sdl-c

A simple tetris game implemented in C using SDL 2.x. This is just a toy project to play with and learn SDL 2.x.

Demo on Snow Leopard OSX:

Demo on El Capitan OSX:

Install

  1. Install SDL 2.x (www.libsdl.org) in UNIX style; something like ./configure && make && make install.

    Also you'll need:

    On OSX (or macOS), you may use homebrew:

    # As of Dec 2, 2017
    
    brew install sdl2
    
    # http://formulae.brew.sh/formula/sdl2_gfx
    brew install sdl2_gfx
    
    # http://formulae.brew.sh/formula/sdl2_ttf
    brew install sdl2_ttf
  2. make to create tetris_toy

  3. ./tetris_toy

Usage

  • Move tetromino with WASD keys or arrow keys.

  • Press spacebar for hard Tetromino drop.

  • Press r to reset.

  • Press esc to quit.

To Do

License

MIT.

About

🕹️ A toy project implementing a simple tetris clone in C for learning SDL 2.x.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages