Tutorial – Chaos in the City – Unity 3D Game

Chaos in the City for Android

Reskin Tutorial

Created: 22/06/2017

Author: Luis Revilla

Email: luisrevcoding@gmail.com

For sale: In Stock, here.

Thank you for purchasing my game. If you have any questions that are beyond the scope of this help file, please email me.

Table of Contents

1. Game Overview

2. Getting started

3. Change images and sounds

4. Open Unity project from project folder

5. Enable mobile controls (very important)

6. How to change color of 3d objects (Optional)

6.1 Blender

6.2 Unity Editor

7. Character shop

8. Change URL for Rate button

9. Change the start tutorial on the game

10. Enabling AdMob advertising

11. Changing App name, package name and icons

12. Build android APK with Unity Editor

1. Game Overview

Control different monsters and destroy the small town, earn points and coins for the unlock monsters. Be careful of the police and the army trying to stop you.

Requirements:

Features:

  • Random levels.

  • 8 characters.

  • Character shop.

  • Coins for unlocking all characters in game.

  • Earn coins by watching videos.

  • Free gifts.

  • Points.

  • Rate button.

  • Sound on/off button.

  • Easy to customize.

Monetization:

  • Admob banner, interstitials and rewarded videos.

What You Get:

  • Unity 3D Project (full source code), written in C# language.

  • Sounds included with wav files.

  • Images included with png files.

  • Blender 3D models (.blend files).

  • Documentation (pdf file).

2. Getting started

1. You will learn how to prepare the game for submission.

2. After downloading the source code of my game, unzip ChaosintheCity-v1.0-android.zip file.

Contains the following structure:

ChaosintheCity-v1.0-android/Demo/ : Demo of the game, apk file.

ChaosintheCity-v1.0-android/Documentation/ : Documentation of the game.

ChaosintheCity-v1.0-android/ChaosintheCity-Unity3d-Admob-full-source-code-v1.0/ : Unity Project with AdMob, full source code.

ChaosintheCity-v1.0-android/Resource-files/ : It includes source files for images, 3d objects and sounds.

3. Change images and sounds

The graphics and sounds contain copyright you are responsible for preparing new

graphics and sounds. They are located in the following folders:

ChaosintheCity-Unity3d-Admob-full-source-code-v1.0/ChaosintheCity/Assets/ChaosintheCity/Sounds

ChaosintheCity-Unity3d-Admob-full-source-code-v1.0/ChaosintheCity/Assets/ChaosintheCity/Textures

The icons for android are located in the directory

ChaosintheCity-Unity3d-Admob-full-source-code-v1.0/ChaosintheCity/Assets/ChaosintheCity/IconsAndroid

You can use any graphic editor such as Photoshop or Gimp.

4. Open Unity project from project folder

You must install the Unity program and unzip the source code of the game, follow these steps:

1. Open Unity Editor.

2. Press Open button and select ChaosintheCity folder.

ChaosintheCity-Unity3d-Admob-full-source-code-v1.0/ChaosintheCity/

3. If this message is displayed, continue.

4. Open scene ChaosintheCity from Project window.

Project → Assets → ChaosintheCity

5. Select ChaosintheCity file and double click as shown in the following figure.

5. Enable mobile controls (very important)

When you open the scene, the editor will show this exception:

You must build the game to enable the game controller, see chapter 11.

It is located in the Hierarchy window, select GamepadCanvas → MobileAircraftControls.

Before:

After:

6. How to change color of 3d objects (Optional)

3D characters do not use images you can only change the colors.

It can be done in 2 ways using Blender program (www.blender.org) or the Unity Editor.

6.1 Blender

You must have experience using the Blender program (www.blender.org) and the Unity Editor.

Blender files are located in the directory

ChaosintheCity-Unity3d-Admob-full-source-code-v1.0/Resource-files/Objects3D/Players

Follow these steps:

1. Open Blender.

2. Open character files.

3. Change colors of materials.

4. Save changes.

5. Export to Fbx format.

6. Copy fbx file to game directory

ChaosintheCity-Unity3d-Admob-full-source-code-v1.0/ChaosintheCity/Assets/ChaosintheCity/Fbx/Players

6.2 Unity Editor

In Unity editor you can change the colors of 3d objects, follow the next steps.

1. In the Project window select Assets → ChaosintheCity → Fbx → Players.

Like shown in the next figure.

2. Select a character and change the color.

Select the first character as shown in the following figures.

3. In the Inspector window, change the character’s colors.

Select the materials of the 3d object and change the color of the character.

Like shown in the next figure.

4. Save changes.

5. Follow the same procedure for all 3d objects.

7. Character shop

You can change the background color of the character store section, as shown below.

1. In the Hierarchy window, select StoreMenu3DObject.

2. In the StoreMenu3DObject, select BackgroundImage.

Like shown in the next figure.

3. In the Inspector window change the background color.

Select the color option as shown in the following figure.

8. Change URL for Rate button

You must add your web address or package name of your game in the Rate button, as shown below.

1. In the Hierarchy window select GameoverMenuCanvasRateButtonUrlRate.

2. In the Inspector window, add new web address or package name.

Example:

market://details?id=com.android.example

9. Change the start tutorial on the game

You can change the text and image of the game tutorial, follow the next steps.

1. In the Hierarchy window, select TutorialMenuCanvas and change the following information as shown in the following figure.

BackgroundImage = Background image.

HowtoplayText = Text only.

TutorialTitleText = Tutorial title.

10. Enabling AdMob advertising

If you do not want to activate advertising you can skip this step.

You need to have any of the following AdMob ad unit:

– Admob banner ad unit.

– Admob interstitial ad unit.

– Admob rewarded video ad unit.

1. In the Hierarchy window, select ScriptsObject.

2. In the Inspector window, select the script Advertising, add your AdMob banner, interstitial and rewarded video as shown in the following figure.

Banner Unitid = Admob banner ad unit.

Interstitial Unitid = Admob interstitial ad unit.

Rewardedvideo Unitid = Admob rewarded video ad unit.

11. Changing App name, package name and icons

1. Open Build Settings and select Player Settings in the options menu.

File → Build Settings

2. In the Inspector window, replace ChaosintheCity with your own App name and icons.

3. In the Inspector window select Other Settings, replace com.lrevgame.chaosinthecity with your own package name.

4. In the Inspector window select Publishing Settings, use existing keystore or create new keystore.

12. Build android APK with Unity Editor

Build the completed game and deploy it to the Google Play store.

1. Press Build from Build Settings window.

2. Create the apk file which can be uploaded to Google Play.