User Guide · Scenes & Files

New Game Project

Start a game that plays your scene.

File ▸ New Game Project… makes a small Xcode project for a game that plays the open scene. Ductane — the engine Worldra draws with — draws it there exactly as you see it here, and you walk it in first person, with its sounds and music playing. Build it once in Xcode; after that, Play in Worldra starts it.

Making one

  • Save the scene. The game plays its export, and an export is kept for a scene's file.
  • Choose File ▸ New Game Project… and give the game a Game Name and your Organization Identifier (reverse-DNS, like com.example). The bundle identifier is the two together; the identifier is remembered for next time.
  • Click Create… and choose where the project goes. A new folder is made there, named after the game.
  • Worldra turns on Export on Save for the scene, into the project's Worlds folder, and exports it at once. Then it opens the project in Xcode — or shows it in the Finder, with Open in Xcode off.
  • Press Run in Xcode once. The first build fetches Ductane, which takes a few minutes. Xcode may ask whether to trust the project: macOS marks every file Worldra writes, so it reads as downloaded. Choose Trust and Open.

Playing it

  • Press Play (the ▶ button at the left of the toolbar, beside the scene's name, or File ▸ Play, ⌘R). Worldra exports the scene as the window shows it, saved or not, and starts the game with it. With the game already running, Play brings it forward. In an empty scene Play is grayed out, as Pause is: there is nothing to play.
  • Stop (■ beside Play while the game runs, or File ▸ Stop, ⌘.) quits the game. A game made from an older template doesn't hear it; quit that one from its own menu.
  • Every save shows in the running game — no need to build again. The game shows the newer export where it is, with the player standing where they were; only props whose files changed are read again. Build in Xcode again only when you change the game's code.
  • Play needs a game. With none chosen for the scene, Play offers New Game Project… or Choose Game…, which takes any game made with Ductane that you've built. Each scene keeps its own game, on this Mac.
  • Not built yet? Play opens the project in Xcode so you can press Run once.
  • The player starts at the scene's first marker of kind spawn, facing its way, or in the middle when there is none. What other kinds of marker mean is the game's to decide.
  • Controls: W A S D to move, Shift to run, Space to jump, C to crouch; click to look round with the mouse, Esc to let go. A controller works too.
  • The game is yours to build on — Game.swift is where it walks and listens, and where what a player does goes. Ductane's guide is at ductane.com.
  • A Mac with Apple silicon, macOS 26 and Xcode are needed to build and run it.
Run in Xcode opens the first scene in the game's Worlds folder, by name; Play hands it the scene you're working on. To build another scene into the game, turn on Export on Save for it into the same folder and take the old export out.