Launch a game

Beginner

This page explains how to launch your game using Game Studio or Visual Studio.

Launch a game from Game Studio

Note

Game Studio can't launch games for the Windows Store or UWP (Universal Windows Platform) platforms. To launch a game for those platforms, use Visual Studio (see below).

  • In the toolbar, select your target platform.

Platform selection

Note

You can only select platforms you selected in the Create a new game dialog when you created the project. To add additional platforms to the project, see Add or remove a platform.

  • To run the game, click Play icon in the toolbar or press F5.

Game Studio play button

The Output window shows the build progress.

Output window

When the build is complete, your game starts on the selected platform.

Launch a game from Visual Studio

  • In Game Studio, in the toolbar, click Open in IDE (Open in IDE) to launch Visual Studio.

  • In the Visual Studio toolbar, set the appropriate project as the startup project.

Select build profile in Visual Studio

The startup project configuration is updated automatically.

Tip

You can see your projects in the Solution Explorer on the right. The project filename extensions identify the platform (eg .Android, .iOS, etc).

  • Check that the configuration and platform properly matches what you are expected.

    • To start the game without debugging, press Ctrl + F5.

    • To start the game with debugging, click Start or press F5.

Visual Studio Start button

Remove borders

By default, the game runs with window borders.

With bordersWithout borders
With bordersWithout borders

To run the game without borders, use:

  1. Game.Window.IsBorderLess = true;

For example:

  1. using Xenko.Engine;
  2. namespace MyGame
  3. {
  4. public class MyScript : StartupScript
  5. {
  6. public override void Start()
  7. {
  8. base.Start();
  9. Game.Window.IsBorderLess = true;
  10. }
  11. }
  12. }