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.
Before you start
Section titled “Before you start”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. Add a platform
Section titled “1. Add a platform”- Open the Project menu and choose Export….
- Choose Add… and pick the platform to build for.
- For macOS, fill in Bundle Identifier under Application, for
example
com.example.spinner. Export stays off until it has one. - 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.
2. Download the templates
Section titled “2. Download the templates”Only the first build for a platform needs this. The dialog says it found no export template and shows a Download button.
- Choose Download.
- If the editor is in offline mode, it asks first. Choose Go Online.
- 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.
3. Build
Section titled “3. Build”- Select the platform in the list.
- Choose Export Project….
- Pick a folder and type a file name, for example
spinner. - Turn off Export With Debug for a build you give to players. It is on by default.
- Choose Save.
Check: the folder holds the files in the table below.
4. Run it and ship it
Section titled “4. Run it and ship it”| 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.
Build from a terminal
Section titled “Build from a terminal”- Add the platform and download its templates in the editor first, as in steps 1 and 2.
- Run the editor with no window and name the platform’s preset:
./orblit-1.3.0-linux-x86_64/orblit.linuxbsd.editor.x86_64.csharp \ --headless --path ~/Spinner --export-release "Linux" ~/builds/spinner.x86_64Use --export-debug in place of --export-release for a debug build.
Check: the command exits and the program is at the path you gave.
