Skip to content

Export a game

This page builds your project into a program that players run without the editor. You do it all in the Export dialog. The first build for a platform also downloads that platform’s templates, the engine files your game runs on.

Your project needs a main scene. The program opens it when it starts. If you have not set one, right-click the scene’s tab above the viewport and choose Set as Main Scene.

  1. Open the Project menu and choose Export….
  2. Choose Add… and pick the platform to build for.
  3. For macOS, fill in Bundle Identifier under Application, for example com.example.spinner. Export stays off until it has one.
  4. Leave the other options as they are for a first build.
Platform Builds First download
Linux A Linux program for x86_64 59 MB
Windows Desktop A Windows .exe for x86_64 62 MB
macOS An app for Apple silicon and Intel 101 MB

Check: the platform shows in the list on the left. The editor saves it in export_presets.cfg at the project root, so you add each platform once.

Only the first build for a platform needs this. The dialog says it found no export template and shows a Download button.

  1. Choose Download.
  2. If the editor is in offline mode, it asks first. Choose Go Online.
  3. Wait for the bar beside the button to fill. Closing the dialog stops the download.

Check: the message about missing templates goes away and Export Project… turns on.

  1. Select the platform in the list.
  2. Choose Export Project….
  3. Pick a folder and type a file name, for example spinner.
  4. Turn off Export With Debug for a build you give to players. It is on by default.
  5. Choose Save.

Check: the folder holds the files in the table below.

Platform The folder holds To run it
Linux spinner.x86_64 and spinner.opack Run ./spinner.x86_64 in a terminal
Windows spinner.exe and spinner.opack Double-click spinner.exe
macOS spinner.zip, which holds the app Unzip it and open the app

The .opack file holds your scenes and assets. On Linux and Windows, keep it in the same folder as the program and ship the two together. The macOS app is named after your project and holds everything it needs.

Check: your main scene opens in its own window.

To build again after a change, open the dialog, select the platform and repeat step 3.

  1. Add the platform and download its templates in the editor first, as in steps 1 and 2.
  2. Run the editor with no window and name the platform’s preset:
Terminal window
./orblit-1.3.0-linux-x86_64/orblit.linuxbsd.editor.x86_64.csharp \
--headless --path ~/Spinner --export-release "Linux" ~/builds/spinner.x86_64

Use --export-debug in place of --export-release for a debug build.

Check: the command exits and the program is at the path you gave.