Leveleditor

As you can see in the leveleditor has two parts: The left side where all available levels are listed and the right side where you can change the properies of the selected level. At startup Atomixed scans the directorys prefix/share/atomix/levels and ~/.atomix/levels for level descriptions. The levels are identified by name, so if two levels found with the same name, always the first detected level is used. Because the ~/.atomix/levels is first scanned you can overwrite all predefined levels.

If you select a level in the list (with the left mouse button) the contents on the right side change. For every level you must specify a start situation (Level tab on the righ side), a molecule which must be build (Goal tab) and additional parameters (Properties tab). Level and goal editing is nearly the same, except that you can't place walls on the goal grid. In the following section only level editing is explained, differences to goal editing are explicit given. If you changed a level then a asterisk (*) is append to the level name. If you press the Save button from the toolbar, all modified levels get saved to disk.

Editing start situation & goal

To edit a start situation just click on the Level tab. You see a grid which displays the size of the playing field. Objects can be placed anywhere on the grid. The available objects are listed in the theme window. Open it by pressing the Theme Wnd button in the toolbar or select Theme Window from the View menu. You see something like , note that the images may be different for you according to the actually used theme.

Figure 2. Atomixed theme window

The principle is, that you choose your object from the theme window and place it onto the grid in the leveleditor. There are two different kinds of objects, which are on two tabs in the theme window: moveables and obstacles. Moveables are all objects you can move around during the game, normally atoms. Obstacles are all elements which cannot move, usally walls. To select a obstacle object, just click on the image. You will note that the Atom Preview change, displaying now your selected image. If you want to place a moveable you must first select a basic image for the atom from the upper image list and then the appropriate connections on the lower image list. To select more than one connection use the SHIFT or CTRL keys. If you have selected an object just click on the grid, previous placed objects will be overwritten.

On the top right corner of the theme window you can see a set of mouse functions. These functions determine what happen if you click with the left mouse button on the grid:

With the first two functions it is also possible to hold down the SHIFT key. This repeats the current function to all fields from the last clicked one to the current clicked. For example select a moveable object now. Place it in the top left corner of the grid, then hold down the SHIFT key and press the left mouse button on the top right corner. There should be a row of wall objects now. Note: this function works only for fields in the same row or the same column.

A right click on a grid or an object in the leveleditor pops up a context menu. There are the following entrys: the left mouse button on the grid:

Editing additional parameters

On the Properties page you can adjust additional parameters of a level:

Changing the Sequence of Levels

This is a very easy task. Select a level in the list on the left side and use the Up/Down buttons to move it through the list.

Create a new Level

To create a new level press the New button in the toolbar or select New File from the File menu. A dialog appears where you can set the inital settings for this new level:

Adding existing Levels

To add an already exisiting level, which atomix doesn't found yet use the Open button of the toolbar or choose Open... from the File menu. You can choose a *.atomix file, which will be appended to the list of levels.