To put it simply, it’s a way to publish static websites to the Internet! Instead of being a centralized system, it’s decentralized. 4EVERLAND is a Web3.0 cloud computing platform with global acceleration, privacy protection, distributed storage, and other technical features.
I know, it’s a lot of buzzwords, but the important part is that you can deploy your Unity game. It’s also really simple to do so. We will go through 3 steps:
The first important thing to do with your Unity game is to export it for WebGL.
We need to go to the project settings and enable decompression fallback for our WebGL Player.
Go to Edit → Project Settings… → Player → HTML 5 tab and enable:
When the steps above are completed, we are ready to build our game.
Go to File → Build Settings… → Select WebGL → click Build
This will generate a folder with some files and folders in it such as:
All of these files need to be uploaded to our 4EVERLAND project through GitHub, which we will cover in the next sections.
In order for 4EVERLAND to host our game, we need to connect it to GitHub. This section requires some knowledge on how to use command-line tools, and git in general, which we won’t cover in this tutorial. I have written a section about some neat tricks using git commands, which you can find here.
Your Unity game may already be on GitHub, and if that’s the case, you can skip to the final step in this section.
Web
Web
foldergit commit Web -m’feat: Add game’
from the command linegit push origin master
which will push our game files to GitHub
When these steps are completed, it’s time to create a project in 4EVERLAND, which we will cover in the next section
First, we need to link our GitHub account to hosting.4everland.org (this link includes my referral ID). When this is done, we are ready to create a our project
Web
folder → click “Deploy”
4EVERLAND will now deploy our project to the Internet, and once it’s ready, we can start playing our game. That’s it!
I also deployed my Unity game to 4EVERLAND using the same steps as above. The game is still pre-alpha and only contains three test levels as of this writing.
Here’s a link if you want to check it out:
I hope this tutorial has been helpful, and consider using my referral link when creating an account at 4EVERLAND, https://hosting.4everland.org/#/?invite=QCIZV5JX.
You can also read more from 4EVERLAND’s documentation.