Game Development Reference
In-Depth Information
Figure 7-3. In Super Jetroid I encourage the player to buy the full game to unlock all of the levels
in trial mode.
Here is what the level limit code looks like:
if (typeof licenseInfo != "undefined") {
if (licenseInfo.isTrial) {
this.totalLevels = 2;
this.showPurchaseText = true;
}
}
In addition to limiting the number of levels the player sees, I also display a message telling
them to purchase the full game. Again, this is very easy to set up. I simply refer back to my
license details to see if we are in trial mode. If so, I display the buy message.
One thing that you may want to also include is a link back to the app in the store. So, when
people click on the buy now message, they are taken right to the buy page in the Windows
Store. Here is a helpful method for handling this:
Search WWH ::




Custom Search