Vǫrðr Forge Steam page

Building a World

Maps and Travel

A game is a set of maps. Each map has a name and its own document in assets/maps/.

Making and opening maps

Map > New Map
Type a name and press Create. A 2D map starts on the current floor tile; a 2.5D or 3D map starts bare, under a sky. A name that is already a map just opens it.
Map > Open Map
The list of this project's maps. Click one to go there.
Map > Map Settings
The Map page of the settings window: the open map's display name, game mode, whose ground it is (faction), its battle place, floor, size, kill Z, darkness, weather and fog, music, soundscape and random sounds.
Map > World Map
The chart of how maps connect. See below.
Map > Tiles
Paint a 2D map's ground from a tileset. See below.

Display name

A map's name is its file's name, and that is what travel, events and scripts use. Display name on the Map page is the name a player reads instead: the save and load lists and the map name a game screen shows. Leave it empty and the player reads the map's own name. Changing it later changes what every save made on that map shows, older saves included. A save of a map that is no longer there shows the map's own name.

The map's files

<name>.vfa        the map: its manifest, then a row for everything placed on it:
                  props, villagers, enemies, spawn zones, zones, paths, folders,
                  painted pools, oceans and effects
<name>.run        the same map written out as Rûn verbs

The editor writes both on Save. The manifest is the rows at the top of the .vfa: settings (ground, spawn, bounds, camera, kill Z, darkness, fog and the like), terrain, sky, weather, music and soundscape. It is short and safe to edit by hand, for example:

comp settings settings -1 -
field ground assets/art/floors/vordr_grass.png
field spawn 320 320
field ambient 40
comp music music -1 -
field file forest_theme.wav
field volume 0.5

A map's own camera

By default the play camera follows the character. A map can hold the view still instead:

camera fixed [x y]
The view stays at that point (a single-screen room, a boss arena). Without a point it uses the centre of the map's bounds.
camera locked [x y]
The same, and the player's zoom wheel is frozen too.

A script can still pan the camera inside such a room.

Tiles (2D)

Map > Tiles opens the Tiles window. Pick a tileset and a layer, then paint on the map with Paint, Erase, Rect or Fill, or with Terrain, which picks the right edge and corner tiles for you as you go. A layer draws below or above the characters. Mark a tile Solid, Climbable, Moveable or Breakable and it plays that way.

Travel between maps

Any script moves the player to another map with one verb:

travel forest 400 220

Leave off the position and the player arrives at that map's Player Start. Either way the character stands on the floor there, whatever height the last map left. See Arriving on a Map.

An object that takes the player to another map

  1. Map > New Map, type forest and press Create. Go back to the first map with Map > Open Map.
  2. Outliner > Add… > Event puts a new event, New_Event.run, in the Content Drawer's events folder. Name it to_forest, double-click it to open it, and make its lines these two:
[use]
travel forest
  1. Select the object the player will use: a door, a cube, a sign.
  2. In its Properties, turn on Interactable > Interactable. Leave Type on Use.
  3. In Interactable > Event, choose to_forest.
  4. Press Play, walk up to the object and press the use key (E).

The use key reads Interactable and its Event. The object's Object > Tag is its name, which scripts call it by.

Saves remember which map the player is on. When the player dies and rekindles, it is at the current map's Player Start.

The World Map

Map > World Map is a chart of your world: zones (an overworld, starting areas, dungeons), the maps in each zone as rooms, and the links between them. It is saved as assets/world.vfa. It is the plan of your world; travel itself is done by events.

Regions and trade

Tools > Economy groups maps, World Map zones and zones into regions, each with its own prices and supply, and sets trade routes between them. A route's caravan sets out every few days and can walk one of your paths, and what it carries moves the supply at both ends. It is all saved in assets/data/economy.vfa. See Shops.

Kill Z

In a 3D project, a map with no ground of its own lets the character fall. Kill Z is the height below which a fall kills: set it in Map Settings, or leave it on Auto (a little below the lowest prop). On a map with ground under every point, Auto means no kill Z at all. A 2.5D map marked groundless falls the same way.