TETRIS

Section: Games and Demos (6)
Updated: 11 Jan 1993, V2.0.1
Index Return to Main Contents
 

NAME

GENERIC TETRIS - Yet Another Tetris Game on X  

SYNOPSIS

tetris [-s] [-l <start level>] [-p <prefilled lines>] [-showNext] [-beep] [-display <display>] [-geometry <geometry>] [-iconGeometry <geometry>] [-{background | bg} <color>] [-{foreground | fg} <color>] [-bigFont <font>] [-tinyFont <font>] [-xrm <resource specification>]  

DESCRIPTION

One of the motivations of this tetris program is simplicity. It does not have many fancy features but the blocks are big enough so player can feel comfortable.

The program lists the top 15 players at the end, each player may has at most three scores. With the option -s, it shows all the players and scores.

Key "j" moves the block left, "l" moves right, "k" rotates. Left-handed people may want to use "s", "d", "f" respectively. Or maybe someone wants to try the arrow keys... The space bar drops a block quickly. Use "CTRL-L" key combination to redraw - in case the program messes somthing up.

As usual, "+" and "-" speed up or lower down the speed. Note that you don't need to press the "SHIFT" key - "=" and "_" also work. The "b" key toggles "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.

To get high scores, don't use "show next" mode, try starting at a higher level and try to let "tetris" eat more than one line at a time.  

OPTIONS

-s
This option lets the program only list all the recorded scores then exit.
-l level
This option starts the program at the specified level (resource name "startLevel").
-p lines
This option indicates that the program should start with some of the lines being randomly filled (resource name "preFilledLines").
-showNext
This option tells the program start in "show next" mode (resource name "showNext").
-beep
This option turns the sound on (resource name "beep").
-display host:dpy
This option specifies the X server to contact.
-geometry {+|-}X{+|-}Y
This option sets the initial position of the tetris window (resource name "geometry").
-iconGeometry {+|-}X{+|-}Y
This option sets the position of the icon (resource name "iconGeometry").
-{background | bg} color
This option specifies the background of the tetris window (resource name "background").
-{foreground | fg} color
This option specifies the foreground of the tetris window (resource name "foreground").
-bigFont font
This option sets the font used in drawing titles and important messages (resource name "bigFont").
-tinyFont font
This option sets the font used in drawing status information (resource name "tinyFont").
-xrm <resource specification>
Another method of specifying preferences.

 

SEE ALSO

X(1), xtetris(1), xmris(1)  

COPYRIGHTS

® Copyright 1992-93, Qiang Alex Zhao, University of Arizona.  

BUG REPORTS AND PROGRAM UPDATES

Send bugs (or their reports, or fixes) to the author (note: my first name is NOT spelled as "Quiang"):

Qiang Alex Zhao,       <azhao@cs.arizona.edu>

Computer Science Department
University of Arizona
Tucson, AZ 85721

The most updated source could be found on export.lcs.mit.edu under /contrib.  

ACKNOWLEDGEMENTS

Thanks go to people who helped me in improving the program.


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO
COPYRIGHTS
BUG REPORTS AND PROGRAM UPDATES
ACKNOWLEDGEMENTS

This document was created by man2html, using the manual pages.
Time: 19:04:02 GMT, February 02, 2023