Jump & Run
The Game
The Jump & Run Template is a platformer basement.
Updates
Before you continue with reading the docs, please make sure that you are using the latest versions!
The Asset
We have released an update for our game template Jump & Run. Please make sure that you have downloaded the latest version from scirra. Just click on the button below in order to get to your Download Area on Scirra.
[creativ_button url=”https://goo.gl/3AFr1I” icon=”download-alt” label=”My Downloads (Scirra)” colour=”green” colour_custom=”” size=”medium” edge=”rounded” target=”_blank”]
Construct 2
In order to follow the docs, please make sure that you have at least Construct 2 r227 installed. You can download the latest version here.
[creativ_button url=”https://wdbase.de/download/programme/download.html” icon=”download-alt” label=”Download Construct 2 (Scirra)” colour=”green” colour_custom=”” size=”medium” edge=”rounded” target=”_blank”]
Intel XDK
Please note that Intel XDK has been deprecated! See the statement of Intel below,
Read the full statement here.
https://software.intel.com/en-us/xdk
If you want to know how to build games with Intel XDK basically, you can follow our video tutorial over here.
[creativ_button url=”https://shatter-box.com/knowledgebase/cordova-how-to-build-a-game-usinge-construct-2/” icon=”facetime-video” label=”How to build with Intel XDK and Construct 2″ colour=”blue” colour_custom=”” size=”medium” edge=”rounded” target=”_blank”]
The Project
Open the Project
Our Template uses Cranberrygame’s Cordova Plugins (in the latest update). So in order to open the project you have to install the needed plugins first.
Used plugins are
- Cordova IAP
- Cordova Game
- Cordova Power Management
Please download the plugins here. They are all included in this package.
Cranberrygame - Cordova Plugins 150 MB 5132 downloads
Download the awesome Cordova Plugin Package provided by Cranberrygame. The package...If you don’t know how to install plugins, please check our doc here.
[creativ_button url=”https://shatter-box.com/knowledgebase/cordova-install-plugins-in-construct-2/” icon=”book” label=”How to install Plugins in Construct 2″ colour=”blue” colour_custom=”” size=”medium” edge=”rounded” target=”_blank”]
Add your ID’s
Some of the plugins need ID’s (like the AdMob Ads IDs). In order to add yours, please open the project with Construct 2 and select the corresponding plugin in the Projects Bar.
AdMob Ad IDs
Replace “YOUR_ID” with your own AdMob ID.
[creativ_button url=”https://shatter-box.com/knowledgebase/admob-how-to-test-ads/” icon=”book” label=”How to Test your Ads” colour=”red” colour_custom=”” size=”medium” edge=”rounded” target=”_blank”]
InAPP Secret
You get your secret code from the Google Developer Console.
[creativ_button url=”play.google.com/apps/publish” icon=”list-alt” label=”Google Play Developer Console” colour=”orange” colour_custom=”” size=”medium” edge=”rounded” target=”_blank”]
Google Play Developer Console – Your App/Game – Services & APIs
Google Play Game App ID
There is no need to add your APP ID in the Construct 2 project. This ID must be added later in the Intel XDK Project.
Export your Game
If you want to build a mobile game using our Jump and Run template, please follow the steps shown below.
Export to Cordova
Select “Cordova” as platform.
Uncheck “Minify script”.
Check “Use new Intel XDK project format”. If you don’t have this option, update Construct 2 to r227 or higher.
Adjust the Basement.xdk file
Unfortunately there is an issue with the Cordova Plugins. So we have to adjust the “YOUR GAME Basement.xdk” file before you import it to Intel XDK!
Open it with a Code Editor and search for the Cordova Plugins.
Delete the selected code and save the file. Please note that the “,” is selected as well! Otherwise it breaks the file.
Import Project
Now switch to Intel XDK and import the project with “Open An Intel XDK Project”
and select your “… Basement.xdk” file.
For a more detailed guide, please see here.
[creativ_button url=”https://shatter-box.com/knowledgebase/cordova-how-to-build-a-game-usinge-construct-2/” icon=”facetime-video” label=”How to build with Intel XDK and Construct 2″ colour=”blue” colour_custom=”” size=”medium” edge=”rounded” target=”_blank”]
Re-Add the Plugins
In order to add now the plugins we had to delete before, select your project and then go to “Plugin Management”.
Then click on the “+” symbol.
Select Third-Party Plugins and then…
Cordova Game
Plugin Source: Cordova Plugin registry
Plugin ID: cordova-plugin-game
Then click on “Add Plugin”. You will then prompt to input your Google Play Game APP ID (only numeric!).
Cordova AdMob
Plugin Source: Cordova Plugin registry
Plugin ID: cordova-plugin-ad-admob
Then click on “Add Plugin”.
Cordova IAP
Plugin Source: Cordova Plugin registry
Plugin ID: cordova-plugin-payment-iap
Then click on “Add Plugin”.
Cordova Powermanagement
Plugin Source: Cordova Plugin registry
Plugin ID: cordova-plugin-powermanagement
Then click on “Add Plugin”.
The result should look like that.