go play


General info 

What is Game for 2

In classic TetraLine-for-2 game, two players simultaneously play in own field; when any of them drops 2 and more rows, same number of rows appears in field of the opponent. With this game, you can also customize how many lines do you need to drop simultaneously to make them to appear in field of your opponent.

How to use Game for 1 to prepare yourself for Game for 2

Go to Game for 1 page and then either use recommended modes or customize a mode for yourself.  The idea is to train yourself such elements as dropping as many 2+ rows as possible in the beginning of game; or keeping and reducing height in the field as low as possible when opponent drops lines in your field, etc.

What else you will find in this documentation

Usage of the applet on another site

Currently it is not supported and not allowed. Please contact us if you are interested in using this applet on your Web site.

Contact 

[email protected] 

Coming up 

check out current state of the project 

Controls 

"start" button

starts game (clears previous game if any) 

"stop" button

stops game 

"preview" checkbox

if checked, preview field is active and shows the next figure.
if not checked, preview field is inactive and does not show the next figure.
 

"delay, msec" field

delay in milliseconds - determines speed.
Smaller value - faster speed.
Recommended speeds: 50, 75, 100, 150, 300, 500, 1000.
 

"starting rows" field

number of randomly generated rows at the beginning of game. "0" - no rows.

"count what" field

Specifies what to count: 

  • all rows
  • etc.

"stop when time count reaches" checkbox and field

if the checkbox checked, game stops as soon as elapsed time reaches specified value.
if the checkbox not checked, has no effect. 

"stop when row count reaches" checkbox and field

if the checkbox checked, game stops as soon as row count reaches specified value.
if the checkbox not checked, has no effect.
 

"add rows if count does not change" checkbox

if the checkbox checked, it adds randomly generated rows in the field if row count does not change for the specified number of seconds. Number of lines to add can also be specified; normally it is 1-5.

"add rows if even if count changes" checkbox

if the checkbox checked, it adds randomly generated rows in the field every X seconds, where X can be specified. Number of lines to add can also be specified; normally it is 1-5.

Keyboard

Recommended Keys Set

on Win95/WinNT PC systems, numeric keypad with NumLock ON. 

F2

start game 

F3

stop game 

Left, "4", "J"

move left 

Right, "6", "L"

move right 

Up, "8", "5", "K", "I"

rotate 

Space, "0"

drop down 

Down, "2"

move down 

Home, "7", "U"

move far left (may be disabled) 

PgUp, "9", "O"

move far right (may be disabled) 

HTML usage

width and height 

width and height specified in pixels:
    code = TLC.class
    width = 450
    height = 400
>
    ...
 

width and height specified in percentages of the page:
    code = TLC.class
    width = 80%
    height = 80%
>
    ...
 

parameters 















 

 

startByDefault - "0" or "1"

if set to "1", game begins as soon as page and applet loaded.
if set to "0", game begins when user issues command "Start".
if not present, default is "0". 

preview - "0" or "1"

if set to "1", preview field is active.
if set to "0", preview field is inactive (does not show next figure).
if not present, default is "1". 

delay

delay in milliseconds - determines speed. Smaller value, faster speed.

startingRows

number of randomly generated rows at the beginning. "0" - no rows.

countWhat - "1+", "1", "2+", "2", "3+", "3", "4"

"N+" means that only N and more rows will cause increment of rows counter. E.g., "2+" means that 2, 3 or 4 for rows dropped at the same time will cause increment of rows counter; 1 row will not cause increment.
"N" means that N and only N rows will cause increment of rows counter. E.g., "2" means that 1, 3, 4 rows will not cause increment, while only 2 will cause.

stopOnTimeCount - "0" or "1"

if set to "1", game stops as soon as elapsed time reaches value specified in "timeCountStopValue".
if set to "0", has no effect.
if not present, default is "1". 

timeCountStopValue

numeric value. In pair with stopOnTimeCount, has meaning described in section above 

stopOnRowCount - "0" or "1" 

if set to "1", game stops as soon as rows count reaches value specified in "timeCountStopValue".
if set to "0", has no effect.
if not present, default is "0".
 

rowCountStopValue

numeric value. In pair with stopOnTimeCount, has meaning described in section above

disableMaxKeys - "0" or "1"

if set to "1" keys for move far left and far right are disabled.
if set to "0", has no effect.
if not present, default is "0".
 

disableSmoothScroll - "0" or "1"

if set to "1" smooth scrolling of figures is enabled.
if set to "0", smooth scrolling of figures is disabled.
if not present, default is "1".
 

paramsPanel - "0", "1" or "brief"

if set to "1", shows full params panel, including such field as preview, delay, count what, etc. These field are implemented by the applet, not html browser. This support exists to allow to run this java applet as a standalone application.
if set to "0", no params panel shown, even rows count and elapsed time are not visible.
if set to "brief", param panel with row count and elapsed time is shown
if not present, default is "1".

 

previewPanel - "0" or"1"

if set to "1", shows preview panel
if set to "0", no preview panel shown
if not present, default is "1".
Note that if paramsPanel is set to 1, it will show preview panel no matter of previewPanel setting; this is because in paramsPanel it is possible to select preview mode.

 

bgColor and fgColor - "RRGGBB" format


go play