Tetris
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Tetris Implementation in C
This is a C implementation of the popular game Tetris.

Requirements: GCC, Ncurses (if using the terminal version, incomplete), SDL and SDL TTF library (if using the graphical version, recommended), libfreetype.

To get these on ubuntu, use the following command:

sudo apt-get install build-essential libncurses5-dev libsdl1.2-dev libsdl-ttf2.0-dev libfreetype6-dev

Once you have these libraries, simply type "make" in the tetris directory.

To play, run either the tetris_sdl or tetris_ncurses executables.

Controls:

Left, Right, and Down Arrows: Move piece
Up Arrow: Rotate piece
Space: Drop piece 
Q: Quit

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。