Whenever you start working with a new tool, you need to learn it first, and Elympics is no exception. Going through our documentation may be time-consuming, so we prepared an easily-digestible Unity 2D tutorial series that will show you how to implement it into your game. ⚙️
In this three-part Unity 2D tutorial series, you’ll be migrating a local, hot-seat multiplayer game to an online gameplay. Elympics will also make it fully server-authoritative, deterministic and fair.
We’ll do it on the example of the pong, one of the first computer games ever created. In this part of our Unity 2D pong series, you’ll learn how to integrate the Elympics package into your game. Let’s get started! 🚀
Launching our local Unity 2D game
You can download the game here. Once you do it, launch it in Unity.
You can launch the Play Mode and play around in the local, hot-seat mode to see how it works first.
Choose Add package from git URL and download Elympics SDK package by pasting this address: https://github.com/Elympics/Unity-SDK.git
To create a multiplayer Unity 2D game using Elympics, you need to create the local Game Config, an object that gathers all the information about gameplay settings, synchronization, etc.
Input your login credentials (email and password) and make sure that your Elympics Web Endpoint is set correctly to https://api.elympics.cc and marked as Connected.
Now, click Synchronize to download your current endpoints and game configurations.
The next step is to create a Game Config object for our game. Note that it’s a local (Unity) game config, but it needs to be synchronized with the web. We don’t have any configs now, so let’s create one with Create first game config!.
The configuration is done! The last step of the setup is to add the Elympics root object to your gameplay scene.
Congrats, you’ve successfully integrated Elympics package to your Unity 2D pong! 🎉 In the next part of the series, we’ll focus on adding world synchronization and input handling. See you in the next Unity 2D pong tutorial!
In the meantime, visit our Discord where you'll find all the updates about the games built on Elympics and hints from our developers.