“RunIntoDeath” Documentation by “Tobiasz Brzezinski” v1.0


“RunIntoDeath”

Created: 22/09/2016
By: Tobiasz Brzezinski
Website: uncertainstudio.com
Email: uncertainstudio@gmail.com

Thank you for purchasing my game. If you have any questions that are beyond the scope of this help file, please feel free to email me. Thanks so much!


Table of Contents

  1. Introduction
  2. Ads
  3. Ads
  4. Export for mobile
  5. Publish
  6. More guides

A) Introduction - top

You bought a HTML5 Game which was made in Construct 2. To edit this game you will need to get the software which you can get for free on: http://www.scirra.com. However, after you made changes in the .capx, for publishing and making money with it, you have to get a license. In the files folder you will find the game .capx, open this file with Construct 2 to edit anything in the game. I have made the code easy readable, however if you have trouble or no experience in editing Construct 2 files you can find a guide to almost anything at: Scirras Tutorial Page.
There is also a realy great guide from Kyatric at the Scirra Tutorial Page. This guide has all the steps i have listened and even includes the creation procedure of an AdMob account plus creating new Banner Ads.


B) Upload to your library - top

If you just want to upload the game to your online-library, without any changes like adding ads, you can upload the "HTML" folder. Rename the folder to your needs. Don't change anything in the HTML folder.

The "PNG_Ai" and "Sounds" folder are just your resource files, so you can produce advertising etc. Do not upload them with the game or sell them.


C) Ads - top

Scirra has a great documentation. You can use their guide for further information at: https://www.scirra.com/manual/184/admob

I have prepared my file to activate AdMob ads as easy as possible. To activate this functionaltiy you have to follow these steps:

  1. Open the file "RunIntoDeath.capx" in Construct 2 and edit the "AdsActivated" variable in the ads Event Sheet. Set the default value from 0 to 1.
    HTML5 Game


  2. Now select the Admob plugin under the Object Types folder and set your needed Banner IDs in the AdmobAds Properties (make sure you don't add empty spaces at the end):
    HTML5 Game

That's it! Now you just have to export the file to HTML or for mobile devices. The next point explains how to export to mobile in detail. The HTML export is much easier. You just have to click on the top panel of Construct 2 on "Export project" and select HTML, follow the steps on screen and create. After that you can upload the folder to your FTP.


D) Export for mobile - top

After you made changes to the Construct 2 file you have to export the project. Again there is a great Scirra guide here which you can use for further explanations, or you just use my guide below.

Follow these steps to export for mobile:

  1. To export you have to click on the top panel of Construct 2 on "Export project":
    HTML5 Game
  2. Now you have to choose the platform you want to export to. Under the mobile section select Cordova, which builds files for Android, iOS and Windows Phone:
    HTML5 Game
  3. In the next step you can set your "Export options", leave them by default or if you don't have Java installed on your machine, you can remove the "Minify script (recommended)" check mark.
    HTML5 Game
  4. Finally there are various Cordova options. Leave them by default as shown on the screenshot. Of course you can exclude "iOS, Windows Phone (.m4a)" if you wish just to export for Android or vice versa.
    HTML5 Game

E) Publish - top

Once your export is done, you have to use a publishing methode. Here are some providers:

PhoneGap Build, run by Adobe
Intel XDK, run by Intel
Ludei CocoonJS, run by Ludei

For the moment I recommend Intel XDK, it gets the best results. You will need to sign in there first and download the software. In this guide i will show how to export for Android devices. Most steps for other devices are the same and self explanatory.

Let's start:
After you downloaded the software open the Intel XDK. First you need to create a new project.

HTML5 Game

Click on "Import Your HTML5 Code Base" and select your exported cordova folder from Construct 2. Set the following settings:

HTML5 Game

A window will popup which will show you a little tutorial about Intel XDK. You can follow it or just click on "No Thanks". After your Project has opened, click at the top panel on projects.

HTML5 Game

Make sure your project is selected at the left. At the right, click on "-Plugin Management" and then "+Add Plugins to this Project".

HTML5 Game

A new window will popup. Now we add AdMob support: Select "Featured Plugins" then "AdMob* Ad Services (old)" and at the bottom right "Add Plugin".

HTML5 Game

Now you need to fill your app information. Make sure your AppID is unique and your App Version is +1 for each release.

HTML5 Game

Also Change the "Cordova CLI Version 5.1.1" to 4.1.2:

HTML5 Game

Last but not least add icons which will be seen on the Android devices: HTML5 Game

Now your project is ready to be build. Select the "Build" button at the top panel and click on "Crosswalk for Android" "Build" button.

HTML5 Game

Build the project:

HTML5 Game

The project is building now, this can take a while. In my experience up to 3-5 minutes. When its done you can click the download button and get your files on your machine. HTML5 Game Extract the .zip. The .zip contains 2 files, upload the ARM version "yourapp.crosswalk.arm.201510312049.apk" to the Google Play Store. That's it.


Once again, thank you for purchasing this game. As I said at the beginning, I'd be glad to help you if you have any questions relating to this game. No guarantees, but I'll do my best to assist.

Tobiasz Brzezinski

Go To Table of Contents