Pong 2D: Getting started
This is getting started with Elympics tutorial! What is Elympics? How can I use it? Should I use it? Why?
In order to show you how to use Elympics in practice, and how easy it is to create multiplayer games, we’ve prepared a small demo of Pong 2D. This demo showcases local (hot-seat) multiplayer. In this tutorial we’ll use Elympics to migrate it to online, fully server-authoritative, deterministic and fair gameplay! Let’s get started! 💻💪
Demo consists of basic functionalities of a pong-style game - moving pads (Player 1 - arrow keys, Player 2 -
S keys). Ball bouncing, score counting and match control (win / lose conditions). This game can be downloaded here. Please feel free to follow along this tutorial!
Launch it and download Elympics!
Unity, we can see our base Pong 2D game.
Feel free to launch Play Mode and play around in local multiplayer (hot-seats) mode. To start our journey with Elympics, lets first download it using Unity Package Manager. Open it in unity in
Use the Add package from git URL and download Elympics SDK package by pasting this address: https://github.com/Elympics/Unity-SDK.git
If all goes well, you should have some new menu bar items available:
Tools (with Elympics hidden inside). Now we’re ready to jump right to our multiplayer configuration.
In order to start creating multiplayer games using Elympics, first we need to create our local Game Config, which is an object that gathers all information about gameplay settings, synchronization, etc.
First, let’s log in to our developer account for Elympics. Go to
Manage games in Elympics.
Input your login credentials (email and password). Make sure that your Elympics Web Endpoint is set correctly to https://api.elympics.cc and that it’s marked as Connected.
If you don’t have an Elympics account, you’ll need to create one here.
Synchronize to download your current endpoints and game configurations.
Before completing the next step, you’ll need a configured Elympics game in our web panel.
The next step is to create a Game Config object for our game. Note that this is 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!.
Now copy the name and identifier from games list displayed below your account data. Set your version number and select the gameplay scene
Gameplay scene is the scene that Elympics will launch once your players are connected to the game.
The configuration is done! The last step of setup is to add Elympics root object to your gameplay scene.
Final step: configuring the scene
In order to use Elympics during gameplay, we need to add main Elympics object (prefab) to our scene. To do that, right-click in your scene hierarchy and select
You’ve successfully integrated Elympics package to your game! In the next part we’ll focus on adding world synchronization and input handling. 🎉🎉
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.