https://github.com/dim13/xtetris
Yet Another Tetris Game on X
https://github.com/dim13/xtetris
tetris x11
Last synced: 3 months ago
JSON representation
Yet Another Tetris Game on X
- Host: GitHub
- URL: https://github.com/dim13/xtetris
- Owner: dim13
- License: other
- Created: 2025-07-10T22:41:53.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-14T14:41:35.000Z (11 months ago)
- Last Synced: 2025-07-18T06:51:47.554Z (11 months ago)
- Topics: tetris, x11
- Language: C
- Homepage:
- Size: 50.8 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
GENERIC TETRIS
============== Yet Another Tetris Game on X, V3.2.1
WHY ANOTHER?
Because "different is good"...
Because this one is simple, easy to build, and portable --
actually the blocks are round-cornered and bigger, more
comfortable for your eyes. It only uses Xlib -- no "toolkit" kind
of thing. The most updated source could be found on ftp.x.org
under /contrib.
HOW TO BUILD?
Debian/Ubuntu
sudo apt install build-essential libx11-dev libxft-dev libxi-dev
make -f Makefile.linux
Old build instructions:
Edit the Imakefile (or Makefile.std, see below) for appropriate
settings of variable SCOREFILE and RANDOM, then do:
xmkmf
make
Note: if you don't have 'xmkmf' or the "Makefile" it generates
doesn't work well, try:
make -f Makefile.std
"Tetris" is the game. It only lists the top 15 players at the
end, each player may has at most three scores. With the option
"-s", "tetris" will list all the scores.
ANYTHING SPECIAL IN PLAYING?
Use arrows to move left and right; arrow up to rotate; arrow down to drop.
Use 'j' to move left; 'l' to move right; 'k' to rotate.
Left-handed people may want to use 's', 'd', 'f' respectively.
Use the space bar to drop a block quickly. Do you want to try the
arrow keys?
Use CTRL-L key combination to redraw -- in case the program messes
somthing up.
The '+' key will speed up the speed. To avoid cheating there is
no way to slow down at run-time. The 'b' key can be used to
toggle "beep" and 'n' toggles "show next".
If you press 'p', the game will be paused, and the window will be
iconified -- just in case your boss suddenly appears at your door.
;o) When the tetris window loses its focus, it also goes to
"paused" mode except it doesn't iconify itself.
Refer to the man page for detailed command line options.
FOUND A BUG?
Send bug reports (or fixes) to the author:
Q. Alex Zhao, azhao@cc.gatech.edu
College of Computing
Georgia Institute of Technology
Atlanta, GA 30332-0280