Educademy

View Original

Publishing a Unity Game

We have published a game and have put it on our website, Maths Monkey. This free game is made using Unity tests odd, even and prime number recognition as the player throws bananas at plants depending on the number that is shown.

Unity comes with multiple different platforms a build can be delivered on. Since we want a web game, we will build an HTML 5 Unity WebGL version. This is a module that needs to be installed, but you can do that within Unity.

The Steps

Open the Build Settings menu with Ctrl + Shift + B or Navigate there using File > Build Settings.

Once the menu is open, select WebGL. If you need to install it click on “Open Download Page”

When WebGL finishes installing, click Build. You will then need to select a folder for the build to be created in. Create a folder called “Build” so you can quickly find it.

The build will take a while to complete, depending on the power of your CPU. Unity is CPU intensive while building games.

When the build is complete you will have a inside your build folder an index.html and some other files.

The final step to publishing your build is uploading it to a website, Simmer IO is a great website for sharing Unity WebGL games. Go to: https://simmer.io/upload to upload your game.

If you want to learn how to make your own Unity game to share and publish you can view our course here.

We also have a list of some great Educational Unity Games that you can play in your browser