Skip to main content

PlayPad SDK

What is PlayPad SDK?

It's an Unity package for integrating PlayPad which hosts a WebGL game and serves as an interface for Web3 integration, allowing players to authenticate with their Web3 Wallet, see its state, sign data and send transactions.
These features combined let us create competitive environment that gaming has never seen before.

Available uses of Web3 integration

FeatureDescription
Web3 Wallet authenticationRegardless of played game or used device, players get to keep their identity and progress, allowing to identify themselves in the leaderboards. It also engages players in gathering respect and various other activities offered by Elympics, like achievements.
Launching a game in TelegramReach vast Telegram community with built-in Telegram Bot integration, identify them using Telegram authentication and linked Web3 Wallet, use TON and provide even greater security of your game.
Wallet & Elympics data fetchingPlayers are able to see their nickname, wallet address, balance and Trust in-game. They can also see how much Respect have they earned after a match.
Trust depositProvides security to players' funds by ensuring no lost bet can be left unpaid. Players still own their deposits and can withdraw them at any time (except when in gameplay).
Duels with betsAllows players to play competitive matches with their friends or random opponents, with real cryptocurrency at stake. Both players bet equal and the winner gets the pool.
NFT checkingCustomize your game based on its related NFTs, be it cosmetic changes or game-changing choices!
Managing tournamentsOrganize tournaments with entry fee and leaderboards, where after its conclusion top players get the prize pool. Note that randomization can be set to be the same for all the contestants to ensure fair competition.

Target platforms

Using this package works only for WebGL builds hosted on PlayPad.
Although the build is made for WebGL, thanks to PlayPad players can run the game not only in Desktop browsers but on mobile and Telegram too!

warning

Take note about WebGL's limitations and be careful not to use WebGL incompatible code or assets (for example some shaders won’t work).

Setup

To use the package, import https://github.com/Elympics/playpad-sdk.git using Package Manager.

note

Note that this package's newest version needs newest version of Elympics SDK to work correctly. When you update the package, update Elympics SDK too.

Implementation guide

For now, there are two generally supported types of games you can create using the package - asynchronous and duel.
Authentication, identification and data fetching features are universal though, and can be used even outside presented two.

Asynchronous game

Asynchronous games are meant to be playable solo, where players compete for the highest score in the leaderboards. Although such games are basically single-player in their nature, client-server architecture fills the role of an anti-cheat mechanism needed for secure and reliable match results gathering. With such confidence in the data, real competitiveness with the money on stake can be provided, in the form of tournaments.

If you want to learn how to set up package integration for such a game, check out this section and import the sample or read the integration guide.

Duel

Duels are games where two players compete with each other to determine a winner among them. Such matches can have money at stake in the form of bets that players place at the beginning of the game. For that they need to have Trust set first.

Great example you can check out is Clash of Orbs.