Post

Chapter 2: Simple 2D Game

Chapter 2: Simple 2D Game

2.1 Introduction

In this chapter we will learn to create a simple 2D games, using existing template. Here, bird will pass through obsticle. when ever it pass through include a scoring system too.

2.2 Creating New Project

In Unity Hub, pick new project. Choose all templates. And use 2D, Core. This is an empty project, with a few configurations to make it suitable for 2D games. Give your project a name, hit create, and let’s get game making.

2.3 Unity UI

In step one, we’re going to become familiar with the default Unity user interface. And as we explore the different panels, we’ll make the bird appear on screen.

Right. So this is the default screen layout for Unity, and it’s split into four panels.

First of all, down here, is the Project panel. This will contain everything that is in our game - like sprites,

sound effects, scripts, tiles, fonts, and so on. Some of this stuff will be made in Unity as we go along.

But we can also just drag and drop files from elsewhere on our computer. Like, I’ve made some sprites for the bird and the

pipe in Photoshop and I’m going to import them into my project like so. I’d recommend you make your own - that’s always more fun - but

if you have zero artistic ability then check the description for these assets. The next panel is the hierarchy.

This contains all of the stuff that’s in the current scene - which, in most games, will be a level.

This post is licensed under CC BY 4.0 by the author.