Tutorial 7: Virtual Goods
In this tutorial we explain how to correctly manage Virtual Goods in WiMi5 (VG). VG are the game elements that allow HTML5 game developers to monetize their video games. In the Free to Play business model, VG usually are elements like virtual coins, jewels, gems, power ups or any object that can customize the game character or avatar. There are a lot of possibilities for creating virtual goods and for monetizing video games, the only limitation is the game designer creativity.
Overview of the virtual goods management.
In WiMi5 VGs are managed from several places. Virtual goods are created and configured in the Dashboard and then they are integrated in the game using blackboxes in the Logic Editor. In the Logic Editor you can also use the Virtual Goods Panel for configuring the settings during the development of the game. It is also possible to preview and test the VG´s performance using the Preview panel in the Logic Editor. It will show a virtual shopping cart. Let´s analyze these processes.
Creation and configuration of virtual goods
VGs are created in the Dashboard, in the Virtual Goods section. The first time you enter this section you will see a window like this.
When you click on the New button, a new VG is created with a default price (0,99 €) and cart visibility (yes). The icon of every VG can be customized by clicking on the WiMi5 logo located in the left of the VG. By clicking in the More settings button you can also see and configure more information: promotional name (the name of the VG that will be shown to the players), promotional description, creation date, consumable behavior, and set the maximum number of items that can be bought or owned by a player.
For example, you can offer gold coins in your game. If the player can consume the coins so that the amount of coins is reduced, we say this virtual good is consumable. On the other hand if you offer a super powerful sword that any player can buy and use, but its amount is not reduced, we say it is not consumable. Once a player gets a non consumable virtual good it can not disappear, the player will have this sword for ever.
You can also select, by using the combo in the bottom side of the window, previous versions of the project and the VGs created in each version. Once the project has been deployed it is not possible to delete previous VGs, because a player could have bought a VG and still has not used or spent it.
Integrating virtual goods in the logic of the game
Once virtual goods are created and correctly configured, game developers can determine how and when the virtual goods are going to be used, bought, shown or spent. For this, game developers can use a set of blackboxes that allow to manage VGs and integrate them in the logic of the game. There is also a new Parameter type called VirtualGood that can be used in combination with the aforementioned blackboxes.
This process can be done in the Logic Editor, where you can find a new set of blackboxes within the section Virtual Goods in the Blackboxes tab.
Virtual goods blackboxes
WiMi5 has a set of 3 blackboxes that allow the following actions:
- ConsumeVirtualGood: with this blackbox, developers can configure the action of consuming a virtual good.
- GetVirtualGoodAmount: with this blackbox developers can get the amount of units that any virtual good has in an specific moment.
- ShowShoppingCart: this blackbox allows developers to show the shopping cart containing all the virtual goods created and configured in settings of the game in the Dashboard. The cart will be shown in the Preview Panel as a simulation of the real cart that will be shown in a production enviroment.
First of all make sure the Virtual Goods panel is visible. This panel can be shown using the visualization controls located in the top right corner of every panel. If it is not visible split a panel clicking on Add above panel button, and then in the new panel select Virtual Goods in the Choose type button. To use these blackboxes you can drag virtual good type parameters from the Virtual Goods panel, or you can also drag virtual goods type parameters from the Parameters tab located in the left side of the Logic Editor window.
In the Virtual Goods panelyou can also configure the number of units of any VG. During the execution or preview of any game in the editor, you can see the increase or decrease of all VGs units in this panel. This way you can check the proper functioning of the logic of the game that manages the VGs.20/05/2014 / No Comments