akwilson / tetris

Tetris using SDL2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tetris in C using SDL2

tetris screenshot

Builds and runs on MacOS and Web Assembly, but with a bit of effort should run elsewhere too.

Build it…​

Install the Xcode command line tools

xcode-select --install

Install emscripten.

Install SDL2 via Homebrew and run make

$ brew install sdl2 sdl2_image sdl2_ttf
$ make

Run the native build with ./build/tetris or the Web Assembly build using the index.html file through a web server. E.g.

$ python -m SimpleHTTPServer 8080

About

Tetris using SDL2

License:GNU General Public License v3.0


Languages

Language:C 95.3%Language:HTML 3.9%Language:Makefile 0.8%