Giter VIP home page Giter VIP logo

tetris-sdl-c's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.