Having learned the process of building a prototype of your game, you now have the necessary basic skills to go ahead and start working on your own game ideas, then flesh them out into full-fledged games—honing and building upon the foundational knowledge you have acquired by reading this book as you do so. If you ever want to become a professional, independent game developer, however, you will have to learn about and experiment with the game publishing and monetization options at your disposal. It is beyond the scope of this book to provide an exhaustive, step-by-step guide to set up a monetization system for your games, but we will explore the general process in sufficient detail so that you can get started with the process without the need to do a lot of additional research. In this chapter, we will learn:
The Proof of Concept (POC) game prototype we developed in this book was conceptualized, from the ground up, to lend itself to both mobile and desktop targets. The gameplay and interface, however, are certainly more suited to the conventions of the casual mobile market, so we will focus on this publishing option. Mobile publishing also happens to be the most popular first choice for fledgling game developers, largely due to the low barriers to entry as well as the comparatively shorter development cycle required to create a quality mobile game, as opposed to a quality desktop game.
The two principle mobile platforms to which you may wish to publish your Stencyl creations are:
Displaying ads within your games is one of the easiest monetization methods to implement. Be aware, however, that your ad revenues are not likely to be terribly high unless you achieve very large download and distribution volumes for your games. However, don't despair, as it can and has been done! Mobile game ads come in two basic forms:
All of the blocks related to ads and purchases for the iOS and Android (mobile) targets are accessible and can be triggered in all Actor and Scene Behaviors. To do so, perform the following steps:
For more detailed information about implementing purchases within your Stencyl game, click on the View our In-App Purchases Guide button, as shown in the previous screenshot.
Stencyl supports the creation of third-party engine extensions that can be downloaded from the Stencyl website and integrated into your game projects. Many have already been created and shared freely by some hard-working, generous members of the Stencyl community, which add very useful functionality to your games, or enable the use of third-party APIs. Many of these extensions enable the use of various popular advertisement APIs that are not supported, out of the box, by Stencyl. Some of the most popular ones are:
To implement a third-party extension for the purpose of enabling an additional ad network, for instance, follow these steps:
admob.zip
. Back in Stencyl, click on Install Extensions, and navigate to and select admob.zip
to install it. After a few moments, you will see it appear in the list of installed extensions. Click on the Enable button highlighted in the following screenshot, and then close and reopen the game for the extension to properly activate:
Open the Player Handler behavior again, and select Extensions from the blocks palette to see all of the new blocks that have been added by the AdMob extension as shown in the following screenshot:
You will see from the preceding screenshot that this AdMob extension adds quite a bit of additional functionality to the default AdMob support provided by Stencyl. The two most significant additions are the ability to use fullscreen or interstitial ads, and the ability to use the same ad network and blocks on both Android and iOS.
Both Apple and Google require that you embed a certificate in your published game file, in order to be allowed to publish them to the App Store or Google Play, respectively. In the case of App Store certificates, the process is quite involved and beyond the scope of this 'essentials' guide. To learn the general process, I would recommend that you follow the guide provided by the Stencyl team at www.stencyl.com/help/view/ios-getting-started. In the case of Android certificates, however, the process is much more straightforward. Follow these steps:
3.22.71.28