SDK
An SDK (software development kit) is a set of ready-made code and tools from a platform provider. You add it to your game so that the game can use that platform's services.
Published
An SDK is a set of tools for a specific platform. In browser games you come across it with portals: CrazyGames requires an SDK in the full version of a game, and without it the game earns nothing. In an Android and iOS app, AdMob has its own SDK.
How does it work?
- You add the SDK to the game with one
<script>tag in the<head>section of theindex.htmlfile. CrazyGames and Poki give you the ready-made line. - At the start of the game you call the SDK’s start-up, for example
PokiSDK.init(). - In the game code you report events. Poki wants to know when the player starts playing (
gameplayStart()), and CrazyGames requires a gameplay start event in the full version. - At a natural break, for example between rounds, the game asks the SDK for an ad break. A rewarded ad is the player’s choice in exchange for an in-game bonus.
Example from practice
My game SlipZone has no portal SDK, because it’s on itch.io, which doesn’t require one. A full version for CrazyGames would need the SDK in the game file, a gameplay start event and an ad break between rounds. That’s a task you can give an AI chat, together with the line and the description from the portal’s documentation. The portals’ requirements side by side are in the article on where to publish a browser game.
What to watch out for
- A version for each portal. Each portal has its own SDK, so the CrazyGames and Poki versions of a game differ in code. Keep them in separate files.
- The game library in the project. Poki blocks a game’s requests to other addresses, so save the library, for example Phaser, in the project files.
- Too many breaks. A break in the middle of a round puts players off. Poki asks for breaks to come at natural points in the game.
I describe how to prepare a game for the CrazyGames and Poki requirements in the e-book “Make a Game with AI in a Weekend”.
Questions and answers
Does a game on itch.io need an SDK?
No. On itch.io you upload only the game file. You need an SDK for a portal that places ad breaks in the game, or for AdMob in an app from a store.
Where do I add an SDK to a game from the chat?
In the <head> section of the index.html file, with a line from the portal's page, for example from the Poki SDK documentation. Paste that line into the chat with the description from the documentation and ask for the full corrected code.
See also
Articles that use this term

Founder of FKDRIVE and software developer. Builds and maintains web systems and automation.
Let us talk about your project.
Thirty minutes online about one or two processes that eat the most time. If you would rather write, the contact form is just as good a route.
Book 30 minutes