The rest is done in JavaScript - an if
statement detects if the visitor have an active Coil membership:
if(document.monetization && document.monetization.state === 'started') {
// monetized content
}
else {
// non-monetized content
}
Since it’s within the Settings of the app, we can safely assume the monetization already loaded in the browser - if it was something to be showed on the main screen we’d probably use an event instead. If the user is monetized, they will see the screen on the left, and if not, the one on the right:
It’s a simple implementation, there’s no backend validation - this is more for fun than profit. The stats are collected anyway, so you could play the game as a non-monetized user, register through Coil, and see your statistics from the very beginning.
This is a weird kind of project that “started” 7 years ago, had a few stops along the way, but was finally released. At some point I decided to not wait for Portal and do it myself, and then see what happens.
Since the original concept was suppose to be a physical expansion, some bonuses were using tokens to mark units getting bonuses, but they were scrapped for the sake of not needing any extra parts, so the mobile app is the only thing you need to play. This, however, leaves the door open to create a second expansion, NSHex Standoff (from, you know, “the Mexican standoff”, since “Duel” was a name used by one of the original expansions), which could in turn be paper again given as prizes at Neuroshima Hex tournaments and Polish championships.