
Building the Game
Exercise
Beginner
+20XP
10m
Unity Technologies

In this tutorial, you’ll:
- Create a build of your game for Windows or macOS
- Identify the next steps in your personal learning journey
Note: Linux support is currently in preview, and not fully supported. The steps to build for Linux should be broadly parallel to those for Windows; if you encounter a bug, please report it to the team.
Languages available:
1. Overview
In this final tutorial, you’ll:
- Create a build of your game for Windows or macOS
- Identify the next steps in your personal learning journey
By the end of this tutorial, your game will look something like this:
2. Create a build of your game
Follow the video or text instructions below to configure your build settings, configure your player settings, build your game, and finally play your standalone game:
1. Configure your build settings.
- Save your scene.
- To open the Build Settings window, from the main menu go to File > Build Profiles. Alternatively, you can press Shift+Control+B (macOS: Shift+Cmd+B).
- Select Windows, Mac, or Linux in the Platforms panel
- In the Scene List, select Open Scene List, then Add Open Scenes to add your Roll-a-ball game to the build. You can also drag scenes from the Project window to this list.
- If SampleScene is showing in the list, disable it to exclude it from your build.
2. Configure your player settings.
- Select Player Settings to open a range of different configuration options for the Game view.
- If you want, change the Company Name, Product Name, and Version.
- Select Resolution and Presentation and change the Fullscreen Mode box to Windowed.
- By default this will have a resolution of 1024 by 768, but set the default width and height to something smaller if your screen uses a lower resolution.
- Close the Project Settings window and return to the Build Settings window.
3. Build your game.
- Select Build. This will bring up a dialog that asks you to choose a build location.
- To keep things tidy, create a new folder inside your project called “Builds” at the root of the project, alongside the Assets and Library folders.
- If you’re using macOS, you can also choose a name for your build.
- Confirm that you want to Select Folder (Windows) or Save (macOS). Unity will now build the application and save it to the Builds folder.
4. Play your standalone game!
- Navigate to the Builds folder and then run the executable application.
- Note: When building for macOS, Unity builds an .app bundle that contains all of the relevant data and files. When building for Windows, Unity builds an .exe file and a data folder that contains all of the necessary resources.
3. Your next steps
After you’ve finished your project, what will you do next? Consider some of the options below:
Solidify your programming fundamentals
If you are not already confident with your programming, it is recommended that you start with Create with Code or the more comprehensive Junior Programmer Pathway, which will take your programming skills to the next level. You can also check out the Creator Kit: Beginner Code project!
Expand your artistic design skills.
You did a bit of design in this project, but there is an entire Creative Core pathway that will take you through the fundamentals of materials, visual effects, lighting, post-processing, audio, user interface design, and more.
Continue with more game development.
If you want to continue down the games path, Unity Learn has a wide range of games-based learning content, including the following:
4. Submit your project
If you went above and beyond and created your own take on the Roll-a-ball game, take a screenshot or screen-recording and post it here to share what you made! To upload your project online as a WebGL build so others can play it, you can:
- Follow the instructions to create and build your project for WebGL.
- Share a link in your submission description below so other people know where to find it.
Please also share any "behind-the-scenes" info about how you made your project!
Proud of your project? Share it to the Unity Play showcase by December 20 for a chance to be featured on a Unity Twitch stream.
Please login to submit
Complete this Tutorial
Submission Gallery
ROLL A BALL (procedural levels!)
Roll a ball through procedurally generated levels of increasing difficulty, avoiding enemies and collecting small cubes for score along the way - but be quick, for time will diminish you and their yield. WASD to move, TAB to pause and R to reload the level (in case of impossible odds). My first ever built project! Maybe I spent too long working on this... I doubt anybody is gonna actually play this (the 5 plays in the linked web build are from me... I had to do a lot to get web build looking normal qwq) I actually have a lot to say here, but I can't do that in full, for there is a limit to the rambling @w@ - but I can talk about the procedural generation. Some time during production, I was watching a Brackeys video on how to make NavMesh agents path-find dynamically when he showed a simple script that randomly generated game objects along a grid for the agents to navigate through. Inspired by this, I decided that I would add this randomised generation for levels. The process of creating a level is simple: each element of an array of two dimensions has a random chance to be occupied with a certain value, with this value directly correlating to another element's index within another array of game objects. The process is slightly more complex to fit the project's needs, but the underlying generation is the same. The generation is pretty bad and can create impossible scenarios sometimes, such as collectables spawning in unreachable places or being covered by a trapped enemy. I wanted to improve the generation and even add more content, but I felt that, seeing as this is a beginner roll a ball project, intentionally leaving it in an inferior state to what it could be was appropriate. Project took about five days of actual work to complete. Laptop crashed 48 times during production. ¬w¬ Since you read all this way, there is a secret code that can be typed during gameplay called "SETDIFFICULTY". Enter any value after the code to set it as the difficulty.
Roll The Ball
Tutorial game Roll The Ball
Roll a Ball
Tutorial project :)
Rollaball
Exercise game, moving ball, picking up points and avoiding chasing enemy.
Roll-A-FAHHHH!
Roll-A-Ball, but with FAAAHHH!
Roll Away
Beginner game learning