Build your game with Unity
A very quick guide about how to build a game made with Unity
Objective: Build and run a game made with Unity.
Now that we’ve implemented the final boss of the space shooter let’s make an executable build to test and present the game in a production state.
If you want to play my game feel free to visit my itch.io page:
Space Shadow is a survival space shooter game in 2D . Play in your browser
In order to create an executable build of the game, let’s click on File > Build Settings and the next window will open.
In this window we’ll be able to see the scenes to be build in our game at the top, if you can’t see any scene listed you can use the Add Open Scenes button to add the current scene or you can drag the scenes from the project folders in the new window:
Once the scenes to be build are added at the top, let’s select the target platform at the left and its properties at the right. In this case, I’ll choose to build my game with the PC, Mac & Linux Standalone option as I’m using Windows.
If you are using a MAC or a Linux operative system you can select the respective target platform at the right side of the window:
And now, before building the executable, let’s open the Player Settings by clicking the button at the left side of the window.
A new window will open and we’ll be able to see properties of the executable to be build like:
- Company name
- Product name
- Default icon
- Default cursor
It’s important to notice that if you select the fullscreen window mode in the resolution your game needs to have a button or key to exit the game. If it doesn’t have one you’ll need to close the game using another method.
Once that we’ve modified the playable properties let’s get back to the build settings window and click on the Build button at the right. A file explorer window will be prompted and we’ll need to select a folder to store the executable build and its files:
Then, we’ll need to wait until Unity compiles the game files:
Once finished, a new file explorer window will be prompted displaying the folder that we selected for our build:
Finally, we’ll just need to execute the .exe file and we’ll be able to play our game:
And that’s it, we created an executable build of our game with Unity! :D. I’ll see you in the next post, where I’ll be showing how to close a game in Unity using code.