Android

  • Author: 
    In this tutorial we will create a simple game called “Pin It” using a Unity Game Engine and a C# script. Unity is a cross-platform game engine with a built-in IDE developed by Unity Technologies. It is used to develop video games for web plugins, desktop platforms, consoles and mobile devices. Unity is an all-purpose game engine that supports 2D and 3D graphics, drag and drop functionality and...
  • Author: 
    To build the game go to the file menu, then choose Build Setting. Drag all the scenes in the empty box and set the platform to android as shown below. After you're done click the Player Setting, then fill up the required information in order to build the application. Click Build to build the game into an Android application.
  • Author: 
    Creating the Success Scene This scene will indicate if you successfully completed a level then you can proceed to the next level. First thing to do is to create a new Scene called Success . Then create a UI Image, just like what you did on the gameplay UI locate the sprite in the Sprites folder then attach it to Source Image . Rename it as Background and set its components values a shown below...
  • Author: 
    Now we will create the Gameplay Controller. This will be the game mechanics of the game. It will handle the flow of the game to make it playable. Create a GameObject then name it as Gameplay Controller . Then create a script and save it to Game Controllers folder as GameplayController . Write these important variables to make the game work properly: public static GameplayController instance ;...
  • Author: 
    Creating Spawn Point The Spawn Point manages the spawning of Pin when the Player touches the screen. First create a GameObject rename it as Spawn Point . Create a C# script save it to Gameplay folder as Spawner . Import this module first: using UnityEngine.UI ; Write these blocks of code inside the Spawner class public GameObject pin ; public int maxPin ; [ HideInInspector ] public int totalPin...
  • Author: 
    Creating Gameplay UI Create a UI Image by going in the menu clicking the GameObject , and UI then select Image. Rename the Canvas as Gameplay UI and set the component values as show in the image below. After that rename the image as Background and locate it sprite in the Sprites folder. After setting up the Background , we will create a prompt that will appear when the user is trying to quit the...
  • Author: 
    Game Resolution First thing to do is to set up our Game resolution, to do that click the game tab then go to "Free Aspect" it is just below of Game tab. Then click the add button (the one that looks like +) and enter the value of each properties. For Width just make it "1080" so that we can have a great resolution for our game, then for Height leave it just "1920". Changing the Platform Under the...
  • Author: 
    First you will need to download & install Unit Game Engine, here's the link for the https://store.unity.com/ . After the Unity Game Engine is installed, open the unity game engine then we will get started. Here is the interface of the unity game engine when open Click "New", and then enter the project name "Pin It". After entering the name click the 2D button because the game will be make is...
  • Author: 
    Creating Rotator We will now create the object that always rotate and where we put the Pin on. To do that first locates the sprite inside the Sprites Directory. Drag the sprite to the Scene View . Rename the sprite as Target . Set the component values as shown in the image Add a component Circle Collider 2D and check the Is Trigger . Go to the Scripts folder and create a new folder inside of it...
  • Author: 
    In this tutorial I will show you on how to create a popular game like “Pac man” using a Unity Game Engine and a C# script. Unity is an all-purpose game engine that supports 2D and 3D graphics, drag and drop functionality and scripting through C#. Unity Script is a proprietary scripting language which is syntactically similar to JavaScript. Unity is notable for its ability to target games for...

Pages