0% found this document useful (0 votes)
196 views

Mobile Game Development Assignment

This document describes the development of a 2D mobile game in Unity called Flappy Bird. It discusses choosing Unity as the game engine due to its cross-platform capabilities. The document then covers adding background elements, using the inspector window to view and edit game object properties, and applying sprite renderers to visualize sprites. The goal is to justify the author's mobile game development skills through this individual assignment.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views

Mobile Game Development Assignment

This document describes the development of a 2D mobile game in Unity called Flappy Bird. It discusses choosing Unity as the game engine due to its cross-platform capabilities. The document then covers adding background elements, using the inspector window to view and edit game object properties, and applying sprite renderers to visualize sprites. The goal is to justify the author's mobile game development skills through this individual assignment.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Mobile Game Development

Individual Assignment

Submitted by:
BASHIR IBNE ZAFOR (BIT19016156)
Bachelor of Information Technology (7th Sem)

1
Contents Table

Introduction......................................................................................3
Ans to the Q. No-1............................................................................3
1.1 Procedure of the Game that have been developed:...........................3
1.2 What is Unity:.............................................................................4
1.2.1 What are the features, pros, and cons of unity game development?. 4
1.2.2 Pros and cons of unity game engine:............................................4
1.3 Development of the Game............................................................5
Ans to the Q. No-2..........................................................................7
2.1 Apply the Background..................................................................7
2.2 Inspector.....................................................................................9
2.3 Sprite Renderer............................................................................9
2.3 Ground physics..........................................................................10
Ans to the Q. No-3..........................................................................11
State in Unity..................................................................................11
Conclusion......................................................................................12

2
Introduction
Mobile game development is a process that takes an idea for a game and builds it for mobile
platforms. A mobile game gets built through several stages of planning, production, testing,
and launch. Advanced features, captivating graphics, and an engaging plot can make our
mobile game viral in the online gaming community. We can even customize a game and
relaunch it for a targeted audience such as amateurs or pro-gamers. With regular updates, we
can develop a mobile game that offers next-level performance and user experience.

This paper is an individual assignment for the subject ‘Mobile Game Development’. And in
this paper I am going to develop a 2D Mobile Game about flappy Bird. This assignment will
be very helpful to justify our academic skill on mobile gaming sector.

Ans to the Q. No-1


The gaming industry which is today is much more evolved and bigger than ever before. With
new technologies springing up, it is no wonder that the world gaming market has alone
generated over $152 billion in 2019. [1]

It also shows that console is the fastest-growing field that is abo $47.9 billion in the world.

With such staggering statistics and analytics, you ought to rise to the occasion if you are a
Mobile App Development company. A lot of people are spending more hours on games and
there are many examples out there who are addicted to games.

Now, there are two kinds of gaming we are going to focus here: 2D and 3D gaming.

Games have kept evolving with time with different versions or with a completely different
format. While the scenario of gaming was only limited to 2D gaming in the past, the scene
right now is not the same anymore. Game developers have incorporated the advanced 3D
feature in the games, making the games known as 3D games.

There are debates concerning which gaming development is better, 2D or 3D. Instead of
going to debates I just want to say that Before going to learn 3D game we should make
perfect our skill on 2D as a game developer. So here we are going to develop a 2d game in
this paper.

1.1 Procedure of the Game that have been developed:

To develop a 2D Game we need to follow so many rules to make it success.


First of all we need to choose a platform on where we can develop our game.
3
Secondly we need to use some programming language to make our project
succes correctly. We choose ‘Unity’ as a game engine platform for our game
development. On the other hand we are using java language to support it.

1.2 What is Unity:

When we are using unity game engine, it is very helpful as a cross-platform game engine.
Before 2005, developing 2D and 3D game apps were difficult and they were quite a task. But
mobile game development with unity, it is quite an amazing platform to develop.

It is a strong platform engine that was enabled for 27 platforms and has great resources.

There are many advantages of unity and cooperation and it has so many other perks such as a
great online community for free to create those amazing 3D content in the games.

One of the core advantages of unity is strength. It has tools with great intuition and ready-
made assets. The documentation is perfect and there are tutorials too to develop those great
3D content in the game development.

1.2.1 What are the features, pros, and cons of unity game development?

Features of unity game development are Rendering Scripting and Asset tracking.

These features help in giving flexibility to the projects ready for deployment. This is done on
multiple platforms which tells about the benefits of the Unity game engine.

These features also help in reducing the cost and time of game development.

1.2.2 Pros and cons of unity game engine:

The engine can extend its support to more than 27 platforms and can be easily shared
between the PC, web and the mobile. It has an agile methodology which has fast prototyping
and this can help in speeding up the game development.
How can we not talk about Graphics? The high audio and visual effects that you see are the
ones that are adaptable on the platform. Smooth graphics without any disturbance and
quality.
There are still a few problems with Unity such as the graphics not up to the mark. They are
fine but still lack a few tools to create an amazing set of graphics. The Physics engine does
lack a few features too. The license of Unity is a little bit expensive to purchase. The usage of
stencil support and other features increases the development cost anyway so purchasing of
the license is a costly affair.

4
1.3 Development of the Game

First we are going to download Unity software from the google and its totally free. See the
picture below how and from where we can get it.

Figure-1: Download link of Unity in Google

Figure-1 is showing how easily we can get the download link by simply searching it on
google. After downloading the appropriate version of this we need to simply install it on our
computer. I am using Unity 2020.3.9f1version for my project.

After installation we are going to create a new project from the Unity top bar in left side. The
Picture is referring to that below.

5
Figure-2: Creating new project in Unity

After creating a new project section in our Unity platform we need to place each and every
element from any source. According to our Question of this assignment we are going to 2nd
part which is adding background and after that we will apply others requirement based on the
question in the question no-2.

Before going to show the requirement I am placing the final interface of the game in the
picture below.

Figure-3: Game Interface

Figure-3 is showing the starting moment of the game. It’s a full playable game which is the
bird will run to front and the gamer need to control the flappy bird so that it can go to the next
without hitting the building. If it hit incase then the bird will fallen down. Not only this I also
added the scoring feature so that each step can be able to gain one score for successfully
passed one building to the front.

6
Figure-4: All the elements have been placed bottom side of the unity

The figure-4 is showing all of my elements have been parked on the assets section of the
Unity platform. Now one by one I will bring it to the scene in the Question 2.

Ans to the Q. No-2

2.1 Apply the Background

From the assets section I bring one background which is a tree with white mountain and also
bring one soil ground. After placing it to the scene area I copied all the elements in several
times and pressing Ctrl +D I designed a well structured background.

7
Figure-5: making the background

Figure-5 is referring that how background can be set by copping one picture in several times.

Figure-6: Copy list of the BG

8
2.2 Inspector

Use of the Inspector window is to view and edit properties and settings for almost everything
in the Unity Editor, including GameObjects.

Figure-6: Inspector Window in Unity

By default, an Inspector window displays properties for the current selection. The contents of
the Inspector change whenever the selection changes. To keep the same set of properties
open, regardless of the current selection, do one of the following:

 What you can see and edit in an Inspector window depends on what you select. This
section describes what an Inspector window displays for different types of items you
can select.

 When you select a GameObject (for example, in the Hierarchy or Scene view), the
Inspector displays the properties of all of its components and Materials. You can edit
the properties, and reorder the components in the Inspector window.

2.3 Sprite Renderer 

The Sprite Renderer component renders the Sprite


 and controls how it visually appears in a Scene
 for both 2D and 3D projects.

When you create a Sprite (GameObject > 2D Object > Sprite), Unity automatically creates a
GameObject with the Sprite Renderer component attached. You can also add the component to an

9
existing GameObject via the Components
 menu (Component > Rendering > Sprite Renderer).

Figure-7: Applying Sprite Renderer

From the section Sprite Renderer we can do so many thing for our sprite or selected object.
Such as changing colour, size etc.

2.3 Ground physics

The Physic Material is used in my game to adjust friction and bouncing effects of colliding
objects.

To create a Physic Material select Assets > Create > Physic Material from the menu bar.
Then drag the Physic Material from the Project View onto a Collider
 in the scene.

10
Figure-8: Using Physics 2D in the project

From the physics option we can set how bouncy is the surface, the value of 0 will not bounce.
A value of 1 will bounce without any loss of energy, certain approximations are to be
expected though that might add small amounts of energy to the simulation etc.

Ans to the Q. No-3

State in Unity
Animations are one of the main methods to bring some life into a 2D scene in Unity and
make it dynamic. Objects in the scene may be permanently going through the same looped
animation (think of the leaves of trees moving in the wind) or they may be in a particular
animation state that can change, potentially triggered by some external event (think of a
human avatar that can switch from a walking animation to a running animation and that may
have many other animations associated with).

The theoretical concept behind this idea is the notion of a State Machine: Each GameObject
is always in one of a pre-defined set of states (state for flying, state for running, etc.),
potentially associated with a particular animation. The transition from one state to another is
triggered by some event which, for instance, can be some user input, a collision with another
object, or simply a certain amount of time passed. The states with possible transitions
between them form the object's state graph as shown in the image below. The state graph
together with a pointer to the object's current state when the project is running constitute the
object's state machine.

11
Figure-9: Fly State graph

From the fly state in figure-9 we can set the behaviour of our sprite. This will be the loop of
our State Machine. First we initialize the Fly state, create states, create actions, and map them
all together. After we have mapped them, we will now start the run and indicate the state that
the AI will start to. Now, the AI will change to a specific state, and the fly state will initialize
the action, update it until it the action finishes and sends an event indicating that the action is
finished. Finally, the Fly state will go back and change the state.
Another thing that will cause a change of state is when an event is called outside the AI’s
logic. Like when we create a commander and tells all the bird to stop flying.

Conclusion
Hence, in 2021, 2D game development isn’t having a chance but there is a lot of scope for it
down the line. The best example of 2d game development is Flappy Bird.

It is great and is still popular. Considering the need for a better game story and high-quality
graphics, we do look for 3D game development.

It offers more genres than ever and if we are a mobile game app developer, we know that
what worked 10 years back will not work now. Hence, the in-depth attention and detail to the
game can be pursued in 3D game development only.

12
References

[1] https://newzoo.com/insights/articles/the-global-games-market-will-generate-152-1-
billion-in-2019-as-the-u-s-overtakes-china-as-the-biggest-market/
[2] https://docs.unity3d.com/Manual/class-PhysicMaterial.html
[3] https://blog.theknightsofunity.com/finite-state-machine-part-1/
[4] https://unity3d.com/learn/2d-mobile-game-dev
[5] https://www.21twelveinteractive.com/benefits-3d-2d-game-development/

13

You might also like