# Handbok för Robotar

Robots is a graphical version of the original text based robots game, which can be found on a number of UNIX systems. The player must outwit the robots chasing him/her by getting them to run into each other.

2001
Patanjali Somayaji, Mark Rae
2007, 2009
Daniel Nylander (po@danielnylander.se)
Dokumentationsprojekt för GNOME

Tillstånd att kopiera, distribuera och/eller modifiera detta dokument ges under villkoren i GNU Free Documentation License (GFDL), version 1.1 eller senare, utgivet av Free Software Foundation utan standardavsnitt och omslagstexter. En kopia av GFDL finns att hämta på denna länk eller i filen COPYING-DOCS som medföljer denna handbok.

Denna handbok utgör en av flera GNOME-handböcker som distribueras under villkoren i GFDL. Om du vill distribuera denna handbok separat från övriga handböcker kan du göra detta genom att lägga till en kopia av licensavtalet i handboken enligt instruktionerna i avsnitt 6 i licensavtalet.

Flera namn på produkter och tjänster är registrerade varumärken. I de fall dessa namn förekommer i GNOME-dokumentation - och medlemmarna i GNOME-dokumentationsprojektet är medvetna om dessa varumärken - är de skrivna med versaler eller med inledande versal.

DOKUMENTET OCH MODIFIERADE VERSIONER AV DOKUMENTET TILLHANDAHÅLLS UNDER VILLKOREN I GNU FREE DOCUMENTATION LICENSE ENDAST UNDER FÖLJANDE FÖRUTSÄTTNINGAR:

1. DOKUMENTET TILLHANDAHÅLLS I "BEFINTLIGT SKICK" UTAN NÅGRA SOM HELST GARANTIER, VARE SIG UTTRYCKLIGA ELLER UNDERFÖRSTÅDDA, INKLUSIVE, MEN INTE BEGRÄNSAT TILL, GARANTIER ATT DOKUMENTET ELLER EN MODIFIERAD VERSION AV DOKUMENTET INTE INNEHÅLLER NÅGRA FELAKTIGHETER, ÄR LÄMPLIGT FÖR ETT VISST ÄNDAMÅL ELLER INTE STRIDER MOT LAG. HELA RISKEN VAD GÄLLER KVALITET, EXAKTHET OCH UTFÖRANDE AV DOKUMENTET OCH MODIFIERADE VERSIONER AV DOKUMENTET LIGGER HELT OCH HÅLLET PÅ ANVÄNDAREN. OM ETT DOKUMENT ELLER EN MODIFIERAD VERSION AV ETT DOKUMENT SKULLE VISA SIG INNEHÅLLA FELAKTIGHETER I NÅGOT HÄNSEENDE ÄR DET DU (INTE DEN URSPRUNGLIGA SKRIBENTEN, FÖRFATTAREN ELLER NÅGON ANNAN MEDARBETARE) SOM FÅR STÅ FÖR ALLA EVENTUELLA KOSTNADER FÖR SERVICE, REPARATIONER ELLER KORRIGERINGAR. DENNA GARANTIFRISKRIVNING UTGÖR EN VÄSENTLIG DEL AV DETTA LICENSAVTAL. DETTA INNEBÄR ATT ALL ANVÄNDNING AV ETT DOKUMENT ELLER EN MODIFIERAD VERSION AV ETT DOKUMENT BEVILJAS ENDAST UNDER DENNA ANSVARSFRISKRIVNING;

2. UNDER INGA OMSTÄNDIGHETER ELLER INOM RAMEN FÖR NÅGON LAGSTIFTNING, OAVSETT OM DET GÄLLER KRÄNKNING (INKLUSIVE VÅRDSLÖSHET), KONTRAKT ELLER DYLIKT, SKA FÖRFATTAREN, DEN URSPRUNGLIGA SKRIBENTEN ELLER ANNAN MEDARBETARE ELLER ÅTERFÖRSÄLJARE AV DOKUMENTET ELLER AV EN MODIFIERAD VERSION AV DOKUMENTET ELLER NÅGON LEVERANTÖR TILL NÅGON AV NÄMNDA PARTER STÄLLAS ANSVARIG GENTEMOT NÅGON FÖR NÅGRA DIREKTA, INDIREKTA, SÄRSKILDA ELLER OFÖRUTSEDDA SKADOR ELLER FÖLJDSKADOR AV NÅGOT SLAG, INKLUSIVE, MEN INTE BEGRÄNSAT TILL, SKADOR BETRÄFFANDE FÖRLORAD GOODWILL, HINDER I ARBETET, DATORHAVERI ELLER NÅGRA ANDRA TÄNKBARA SKADOR ELLER FÖRLUSTER SOM KAN UPPKOMMA PÅ GRUND AV ELLER RELATERAT TILL ANVÄNDNINGEN AV DOKUMENTET ELLER MODIFIERADE VERSIONER AV DOKUMENTET, ÄVEN OM PART SKA HA BLIVIT INFORMERAD OM MÖJLIGHETEN TILL SÅDANA SKADOR.

Patanjali
Somayaji

     patanjali@mindless.com

Mark
Rae

     m.rae@inpharmatica.co.uk

Handbok för Robotar v2.8
September 2004

Patanjali Somayaji patanjali@mindless.com

Mark Rae m.rae@inpharmatica.co.uk

Dokumentationsprojekt för GNOME

Handbok för Robotar v2.9
Augusti 2007

Claude Paroz claude@2xlibre.net

Dokumentationsprojekt för GNOME

Den här handboken beskriver version 2.18 av Robotar.

## Återkoppling

To report a bug or make a suggestion regarding the Robots application or this manual, follow the directions in the GNOME Feedback Page.

## Introduktion

GNOME Robots is a game where you try and avoid a band of marauding robots which are, for no adequately explained reason, trying to kill you. It is based on the text-based robots game which can be found on a number of UNIX systems.

This new version includes two types of robots, movable junkheaps, multiple game configurations, user definable keyboard layouts, and sound, as well as all of the features which were present in the original GNOME Robots game.

To run GNOME Robots, select Games Robots from the Main Menu, or type `gnobots2` on the command line.

GNOME Robots is included in the `gnome-games` package, which is part of the GNOME desktop environment. This document describes version 2.18 of GNOME Robots.

## GNOME Robots Objective

The objective of GNOME Robots is quite simple. You are surrounded by a number of robots or other hostile adversaries. As you move about they will move directly towards you for every move that you make. Their goal is to kill you. Your goal is to kill all the robots on the board by taking advantage of their vulnerabilities.

Robots are destroyed when they collide with each other, or when they collide with the debris of some previous collision. You die if a robot ends up right next to you.

In some of the game configurations (you can choose from five different sets of rules), you can push the junkheaps around to form barricades to protect you. Also, if you are daring enough, you can Splat! the robots by pushing junkheaps on top of them for an additional bonus.

You can also save yourself by teleporting yourself to a random location. Unfortunately, randomly teleporting means that you might end up being right next to a robot, so they can kill you when they make their move. Luckily, there are also safe teleports which will place you out of immediate danger, but there are only a limited supply of them. You can earn more free teleports as you go along (how you gain them depends on the chosen game), but typically you get one for each robot that is destroyed while you are 'waiting', up to a maximum of 10. If you don't want to waste your saved-up safe teleports, you can choose to teleport randomly if you think it's safe enough.

If you press the Wait button (see below) you will no longer be able to move until either all of the robots (which still move towards you) are gone, or you are killed. Doing this is risky, but may earn you extra safe teleports.

If you manage to reach the point where more than half of the screen is occupied by robots, the number of robots will be reset to the starting amount, allowing you to continue.

## Using GNOME Robots

GNOME Robots is extremely simple to play. You can use either the mouse or the keyboard. This section describes basic usage of GNOME Robots.

### Grundläggande användning

Starting GNOME Robots opens the Main window, shown in .

#### GNOME Robots Main Window

GNOME Robots Main Window.

To start a new game, choose New in the Game menu or click on the New button on the toolbar.

To move, either click in the direction you want to move (the cursor will show you which way you will go) or press the appropriate key on the keyboard (keypad by default). Clicking on the little man will keep you still. To teleport (safely or unsafely), and to wait, use the buttons on the toolbar or use the items in the Move menu.

## Menyer

The menu bar, located at the top of the game board, contains the following menus:

Spel

  This menu contains three items:

  - Ctrl-N New — starts a new game of GNOME Robots.

  - Scores — shows the higher scores.

  - Ctrl-Q Avsluta

Move

  This menu contains:

  - Teleport— teleports you in a safe location.

  - Random— teleports you in a random location.

  - Wait— places you in wait mode.

Inställningar

  The Settings menu contains only one item:

  - Preferences which brings up the preferences dialog box.

Hjälp

  This menu contains:

  - Contents— shows this manual.

  - About— shows basic information about GNOME Robots, such as the author's name and the application version number.

## Använda tangentbordet

You can use the keyboard to control the little man. By default, the keys from the keypad are configured for the game. However you can customize the key mappings in the Keyboard tab in the Preferences dialog. To select a different key for a command, double-click on the line for that command and then press the key you want to use.

### Default Key Mappings

By default, you use the numeric keypad on the right-hand side of the keyboard (not the separate arrow keys).

#### Switch off the NumLock Key

You may need to switch off the NumLock to make these work.

1. Up Left: Home

2. Up: Up

3. Up Right: Page Up

4. Left: Left

5. Stand Still: Begin

6. Right: Right

7. Down Left: End

8. Down: Down

9. Down Right: Page Down

10. Teleport: +

11. Randomly Teleport: *

12. Wait: Enter

## Customizing GNOME Robots

You can modify the behaviour and appearance of the game by selecting Preferences under the Settings menu. This brings up a dialog with three tabs:

- Game — This page allows you to choose the type of game you want to play. The drop-down box at the top of the page allows you to choose from a number of predefined games. You can't change these options in the middle of a game, so they will be disabled then. There are also several options at the bottom of the dialog:

  1. The safe moves option will help you to avoid being killed due to a mistake. If you try to make a move that would lead to your death when there is a safe move available, you will not be allowed to proceed. But be warned: if there was no safe move available, other than teleporting, the move will be allowed to proceed.

  2. There is also a super safe mode. If you select this, you get beeped when there is no safe move and your only option is to teleport out.

  3. If you select the sound checkbox the game will play sounds for various events throughout the game.

  4. The Splats checkbox selects whether you want the sound played and a small Splat! to appear on the screen.

- Appearance — This page allows you to select the graphics used throughout the game from the list in the dropdown-box. You can also select the background colour from this tab.

- Keyboard — This screen allows you to define your own keyboard controls. To select a different key for a command, double-click on the button for that command and then press the key you want to use.

Any changes you make take effect immediately and are automatically saved.

You can design your own graphics for the game if you want. The graphics files are found in `$PREFIX/share/gnome-games/gnobots2/pixmaps` , where $PREFIX is the prefix into which GNOME was installed. This is usually either `/usr` or `/usr/local`.

Each character is 16x16 pixels and there are 14 of them arranged in a PNG file which is 224x16 pixels in size. You can look at the existing files to see the order in which they must be arranged to produce the correct animated sequences.

Any graphics files which are placed in the directory are auto-detected, so you don't need to alter any configuration files. You can also define your own game configurations by creating extra `.cfg` files which are stored in the `$PREFIX/share/gnome-games/gnobots2/games` directory.

## Upphovsmän

GNOME Robots was written by Mark Rae (m.rae@inpharmatica.co.uk). This manual was written by Patanjali Somayaji (patanjali@mindless.com), from the original HTML documentation by Mark Rae. To report a bug or make a suggestion regarding this application or this manual, follow the directions in this document.

## Licens

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

A copy of the GNU General Public License is included as an appendix to the GNOME Users Guide. You may also obtain a copy of the GNU General Public License from the Free Software Foundation by visiting their Web site or by writing to

            Free Software Foundation, Inc.
            51 Franklin Street, Fifth Floor
            Boston, MA 02110-1301
            USA