XTB

Section: Games and Demos (6)
Updated: 13 January 1991
Index Return to Main Contents
 

NAME

xtb, xtbd - X11 Tank battle program and server  

SYNOPSIS

xtb [ -ic ] [ portno ] [ -os ] [ portno ] -h hostname [ -w ] [ -p ] [ -b ]

xtbd -p [ portno ]

rtb [ -ic ] [ portno ] [ -os ] [ portno ] -h hostname [ -n robots ]

 

DESCRIPTION

Multi player, multi workstation tank battle game.  

OPTIONS

-h    Server hostname to contact.

-w    Turns on warping of the mouse cursor on scrolling.
The default is for the mouse cursor not to be moved when the screen is scrolled (With -w the square under the cursor remains the same.) (Use what you find intuitive)
-c or -i    Client (input) port number for client to use.

-s or -o    Server (output) port number for client to use.

-p  Server port number for server to use (xtbd).

-p  Use polygons for drawing tanks (xtb).

-b  Use bitmaps for drawing tanks (default) (xtb).
Some X servers may not have sufficient storage for 128 bitmaps or may find drawing polygons quicker than copying pixmaps, if so use -b.
-n  Number of robot tanks for rtb to produce.

 

STARTUP

Pick a node (can be any machine with or without X) and run the server (xtbd).
           hostname% xtbd

For each player at a workstation run the client (xtb).
           workstation% xtb -h hostname
(ignore messages about datagrams and fielddata)

For second and further players on the same node, each should pick different port numbers to the default (and each other). eg the second player might type
           workstation% xtb -h hostname -i 1624

To run two or more servers on the same node, use a different port number to the default. eg.
           hostname% xtbd -p 1627
to contact this server the player would need to type
           workstation% xtb -h hostname -o 1627

To start robot tanks, run rtb as you would xtb, adding the -n option for the number of robots. Robots restart when killed after a 5 second delay.  

PLAYING

The display has several areas, the main battlefield, (you appear as a solid black tank, all others display their id) the radar, a damage display, a message window, a quit button and a list of players and their id's. There are also scroll indicators, for the main and radar windows, showing the portion of the battlefield that is on display.

The controls are simple.
Left button    -> Fire (in the direction the tank is facing)

Middle button  -> Reverse

Right button   -> Forward

If you only have a two button mouse, you can use the keyboard to reverse the tank motion, any key press causes the motion to be reversed, any key release returns to normal. If you have auto-repeat on your keyboard (most do), use a key that does not auto repeat (ie. shift,control etc) This will not work for a window manager that does not implement the input (push-focus) window manager hint (olwm and twm are known to work).

The tank will rotate towards the mouse cursor when the cursor is in the main field.

The solid black squares are obstacles, and cannot be moved through or fired through.

The hatched areas are rough ground, you can only move at half speed across these.

The shells have a range of about four squares, you cannot fire again for 2.5 sec after firing.

Explosions do damage according to the (inverse square of the) distance from the explosion. Two direct hits is sufficient for a kill, near misses cause smaller amounts of damage.

Killing another player clears your own damage (to encourage friendly play!).

Quitting should be done using the quit button (NOT the window manager frame)

It is possible to shoot through the diagonal of two blocks.

The battle ground is set for an invocation of the server, each time the server is started a new battle ground is generated. (Scores are also set to zero when a server is re-started.)

 

ENVIRONMENT

XTB_SERVER - name of server to contact by default
XTB_INPORT - port number for input (client) (-i or -c)
XTB_OUTPORT - port number for output (server) (-o or -s)
 

BUGS

I don't currently know of any major bugs (that make the game unplayable/stop/core dump), though it is a bit flaky in a few places.  

AUTHOR

Bernard Hatt
Camtec Electronics (Ericsson), Leicester, England.
bmh@terminus.ericsson.se


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
STARTUP
PLAYING
ENVIRONMENT
BUGS
AUTHOR

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