Oxore / tetris-sdl-c

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Install

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

    On OSX, you may use homebrew.

    Also install:

  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.

License:MIT License


Languages

Language:C 98.2%Language:Makefile 0.9%Language:C++ 0.6%Language:Objective-C 0.3%