Skip to content

Your First Map

This guide walks you through creating a simple map in the editor and running it in the Mortar engine.

Go to editor.ctx.gg or run the editor locally. You’ll see a 3D viewport with a grid plane.

Use the toolbar to add basic shapes:

  • Box — Click the box tool and click in the viewport to place a box
  • Plane — Create flat surfaces for floors and walls
  • Sphere — Add spherical objects

Each shape can be moved, rotated, and scaled using the transform gizmo.

Select an object and use the properties panel to set:

  • Position — World-space coordinates (x, y, z)
  • Scale — Size multiplier on each axis
  • Material — Color and texture settings
  • Physics — Static or dynamic body, collision shape

Click Save to store the map. If you’re signed in, it saves to the ctx.gg API. Otherwise it saves locally as a JSON file.

  1. Open the ctx.gg desktop app
  2. Find your map in the library
  3. Click Play — the app launches the Mortar engine with your map
Terminal window
./mortar --map path/to/map.json