Nyra Studios
Manual under construction. Some parts are incomplete or may change.

Drawing your first map

Nyra 0.5.4.28

Here you draw your first level, step by step. Start from the World Builder opened on a new game (see The World Builder).

What you need: an image for the ground, on your computer: PNG, JPG, GIF, WebP or BMP, up to 20 MB. You can also start from the walls and the spawn point and paint the ground later: the order does not matter.

1. Create the first map

If the game has no map yet, the canvas is empty and the message at the bottom tells you that Save level will ask you for a name. You can start in two ways:

  • In the Project panel, right-click the Layout folder and choose New level. Type the name and press Enter (Esc cancels). The map appears as a tab and the message says Level "X" created.
  • Or draw straight away on the empty canvas and save with Project ▸ Save as…: we explain it in Saving the map and taking it into the game.

Warning

Project ▸ New level does not create a map: it clears the canvas and starts from scratch. It asks for confirmation, because everything you have not saved is lost.

2. Choose the size of the world

With nothing selected, the Properties panel shows the level:

FieldWhat it does
Level nameThe name you see in the tab.
World width, World heightThe size of the level. At the start 4096 × 2304. The minimum is 320 × 240.
Show gridShows or hides the grid. It is only cosmetic.
Snap to gridMakes shapes snap to the grid while you draw them.
Cell sizeThe size of one grid cell. At the start 32.

After changing the size of the world press Apply world: outside the bounds the background is darker. To change the other fields press Apply. You cannot shrink the world if there are shapes or points that would end up outside: move or delete them first.

3. Import the ground image

  1. Right-click the drawing area and choose Add Object.
  2. In the Add Object window open the Tileset tab and press Insert.
  3. In the Load tileset window press Choose image file, pick the file and press Load.

You can use PNG, JPEG, GIF, WebP or BMP images, up to 20 MB. The tileset name comes from the file name. An empty tilemap also appears on the active layer. The message reminds you that the tile starts with a size of 32 × 32.

Note

The tileset name is the file name, cleaned up: spaces and symbols become an underscore and accents disappear, so ground floor.png becomes ground_floor. If the name is already taken the World Builder adds -2, -3. When you rename a tileset or a sprite, only letters, numbers, period, hyphen and underscore are allowed, 1 to 60 characters.

4. Set the tileset grid

In the Layers panel click the tilemap. In Properties you find Tileset grid: width and height of a single tile, spacing and margin. Enter the measurements of your image. The cells you have already drawn keep their tile.

5. Draw the ground

At the bottom of the Properties panel you find the tileset palette and the Brush, Select and Eraser tools. At the top right the World Builder has the IT / EN selector: in Italian the same buttons are called Pennello, Seleziona and Gomma.

  1. Choose the brush and click a tile in the palette. Below it you read which tile you picked.
  2. Click or drag on the drawing area to paint. Hold Shift to erase with the brush.
  3. With Eraser you remove cells. With Select you pick cells you have already painted, to move them or give them a label (we see this in Layers, objects and collisions).

The − and + buttons next to the palette make the palette tiles smaller or bigger, not the ones in the drawing area. Press Esc to leave drawing mode.

6. Place the spawn point

  1. Right-click the drawing area ▸ Add Object ▸ Point tab ▸ Insert.
  2. Click the drawing area where the players must appear.
  3. The point already comes with the spawn label: you only need to drag it where the player must appear.

Here you can also change the point's name, layer and position (X and Y).

A point without a label is just decoration.

7. Draw the walls

  1. Right-click ▸ Add Object ▸ Shape tab ▸ Insert.
  2. Drag a rectangle on the drawing area. The message at the bottom tells you the size, for example New shape: 320 × 32 px.

The shape starts as a solid wall (label solid). If you drag it too small it is not created.

Warning

If your game is in Tile mode, movement is cell by cell, but solid shapes stop the step, like solid labelled cells and sprites with a collision area; oneway and none are walked through. See Layers, objects and collisions and The level.

8. Save

Press Project ▸ Save as…, type the name and press Save. How saving works and how to take the map into the game is in Saving the map and taking it into the game.