How would you go about building an interactive game prototype? For some, it’s an easy task, but if you’re like most people, you couldn’t do it even if your life depended on it. Developing a game for any platform is daunting. Much less to talk of iOS game development in Unity. As challenging as this might sound, it’s not an impossible task.

Unity is a multiplatform game development engine that is ideal for both beginners and expert level programmers. This engine simplifies the creating process, and even though we could go on and on about the many features and tools, it’s a fact that you still need some technical know-how to find your way about the interface. Especially if your aim is iOS game development that you can monetize, you might say I don’t have experience with any coding language like C# or Unity. Nevertheless, if you can gain some meaningful perspective of the iOS game development process in Unity, a prototype shouldn’t be out of your reach.

To begin -

Download and Install Unity

To use unity for iOS game development, you need to find the documentation, download, and install unity on your device. Be it the 2D or 3D version. However, for the sake of this article, we will consider building in Unity3D. You can find a step to step guide that contains the details of how to create a project. Upon successfully creating a 3D project, you will find the primary Unity editor ready for use.

Unity Editor

ios game development - unity editor

In the unity editor, you find all the other tools and features you need to successfully build an iOS game. We’ll look at some of the key features and tools starting with the toolbar. The toolbar has two major tools. These are the transform tools and Play/Pause/Step Toggles. Like the name suggests, the transform tools enable the movement of the object with the scene view. Whereas the toggles help you to play, pause or step the game during iOS game development.

Next, there is the hierarchy window where you’ll find textual representations of the various objects in the Scene view. In essence, it plays the same role the hierarchy window plays in Adobe Photoshop. Therefore it shows the various relationships between the different objects in the scene view. In other words, it is the same as the interface builder view in Xcode.

Scene View

For iOS developers who are familiar with Xcode, the scene view is similar to the Storyboard. It is the place for adding, manipulating, and positioning the various GameObjects of the game. Therefore, every single object in the scene view is part of the game’s GameObjects. The concept is fundamental to the Unity Editor. To simply this concept, your GameObject is a sort of container that allows you to add different components of the game. These components could either be boundaries, ball, lighting or ball.

Some other very significant members of the Scene View are the Camera and Lighting. The camera can be likened to the video camera in movie production. However, it doesn’t deliver the movie story but brings the game world into view of the player. Thereby giving the player perspective on the angle, and other elements of the game world. Lighting on the other hand only exists in 3D iOS game development projects. There are different types to choose from based on the kind of game you building, whether casino slots or . However, your is basically determined by the kind of game you intend to build. Be it a board game, first-person shooter or social game that you set out to build.

Project Window

Basically, your game projects consist of different assets. All these assets are displayed for view in the project window. The window allows you to group similar assets to better organize the project and progress in an orderly fashion. For those familiar with Xcode, the project window is familiar to the Project Navigation Pane.

Game View

ios game development

The game view is where you render the view of your scene view. With the help of the Play, Pause and step toggles in the toolbar, you can do some amazing stuff with your game in the Game View. It is the same as the Simulator in Xcode. Therefore, you have to remember that when you can make changes to scenes in play mode these changes won’t be saved. This is a lesson many new and indie developers learn the hard way.

Inspect Window

The Attribute Inspector of Xcode and the Inspect Window in Unity editor are similar. The components of a GameObject earlier mentioned in Scene view are all displayed in the inspector window. Hence, anytime you select any given GameObject in Unity editor, you can expect to find all related components in the GameObject. Common examples of GameObject components are mesh filter, rigidbody, sphere collider, transform and etc.

The iOS Game Development Process

For the sake of example, we are creating a simple multiplayer game with the project we started earlier in Unity 3D. Our game will have only two players who will take turns with the same device. Our earlier project has Camera and Lighting as two default components. Therefore we need to begin by customizing these. You can proceed according to your own discretion. However, one critical issue with creating a game in unity is the need to save your scenes.

How to Save a Scene

Saving a scene is easy. Perhaps that’s why many forget to do so and end up losing the valuable changes they make and time put into the work. Find your hierarchy window and double click your main camera to access the camera in the Scene view. Check your inspector and ensure the X and Y positions of your Camera are 0. From there you can proceed to save this scene with a right-click on the scene in the hierarchy window.

Next, we can begin making different game objects. But first, you choose a name for it and hit the save button. Viola!

GameObjects – Boundaries, Ball and Paddle

For the boundary GameObjects, we’ll use Cubes and in the case of the ball, we’ll use a Sphere. The boundaries of our mobile game development project will be the ceiling of the game and the floor respectively. Then add these two important components, right-click on your scene view in Hierarchy Window and add a Cube GameObject. Note, many first time developers wonder where is the cube? Your cube won’t be visible in the game view but in the scene view. From here, we need to transform the cube into the game’s ceiling.

Scale Tool

scale tool

This is accomplished with the scale tool. With this tool, we resize the cube to become the top boundary. This new boundary is what we need for the “ceiling” of the game. However, you are not done quite yet. You need to rename this GameObject to make it more descriptive. You don’t need to go through the same process to create a lower boundary for the game. Simply copy and paste the TopBoundary from the Hierarchy Window and rename it as the lower boundary. Next, adjust its position relative to the bottom of the scene by using the Move tool.

Hence, The process of iOS game development may involve several repetitive steps which is why it gets easier and faster with time.

Wrap Up

Thought these processes seem lengthy, they are very simple as you can see. This is the key advantage of iOS game development in Unity3D. With a bit of practice and time, you will perfect the art. However, this isn’t the entire guide. Regard this as part one of this post. For those who can’t wait for part two to finish their iOS games, the unity game developers at Stallion Gaming are just a click away to take your iOS game development ideas and transform them into amazing games that get lots of downloads in the App Store.