What We Do
PurpleToken was created to simplify a common need amongst game developers, maintaining game scores. Through a simple REST API, games can submit scores to our server which will automatically track the top 20 scores. These scores can then be retrieved for display in the game without developers having to manage their own server or database.
App Game Kit (AGK) Users
Originally developed with the AGK community in mind, PurpleToken can be used in any language that supports HTTP calls over SSL/TLS (HTTPS). But for AGK users, here's a
few tips unique to them. This will work with HTML apps, including those hosted on https://itch.io. The code snippet below will allow
your AGK HTML app to display a fullscreen button like those seen on itch games. The code to focus on is the added div called "overlay" and it's CSS.
<div style="text-align: center">
<div> <span id="agkstatus" style="color:#7f7f7f"></span> </div>
<div style="display: inline-block; border: 1px solid; margin: 0px auto;position:relative">
<canvas class="emscripten" id="canvas" width="800" height="600" oncontextmenu="event.preventDefault()"></canvas>
<div id="overlay" onclick="Module.requestFullScreen(false,true)" ></div>
You can use the provided image above or create your own. The code above will position the icon in the lower right corner of your app and trigger the fullscreen when clicked. The icon will not be visible when your app is in fullscreen mode.
The majority of site changes are behind the scenes and will never be noticed (is such the life of a developer).