1
00:00:00,000 --> 00:00:00,000
Hello, guys.

2
00:00:00,000 --> 00:00:02,000
Welcome to the course again.

3
00:00:02,000 --> 00:00:04,000
My name is Alex and this is Unity.

4
00:00:04,000 --> 00:00:07,000
If you feel like inside of a spaceship, don't worry about it.

5
00:00:07,000 --> 00:00:11,000
It's going to become very comfortable environment for you very soon.

6
00:00:11,000 --> 00:00:16,000
And all of the stops and windows will be just a tool for you that you use to make video games.

7
00:00:16,000 --> 00:00:21,000
And again, you don't need to understand everything we're doing because with the time, eventually your

8
00:00:21,000 --> 00:00:28,000
brain will just absorb the information and soon it will be just like, Wow, I know this, I did this

9
00:00:28,000 --> 00:00:30,000
before, so please don't sweat it out.

10
00:00:30,000 --> 00:00:31,000
Take your time.

11
00:00:31,000 --> 00:00:32,000
And let's begin with simple.

12
00:00:32,000 --> 00:00:35,000
Let's go to window layouts.

13
00:00:35,000 --> 00:00:35,000
Two by three.

14
00:00:35,000 --> 00:00:41,000
There are different layouts, but I prefer this one for 2D games because you can see your game window

15
00:00:41,000 --> 00:00:44,000
and see in the window at the same time.

16
00:00:44,000 --> 00:00:46,000
All right, I'm going to resize them a bit.

17
00:00:46,000 --> 00:00:53,000
And before we continue, let's import unity package that I attach to this video and mine is on the desktop,

18
00:00:53,000 --> 00:00:55,000
my very messy desktop somewhere.

19
00:00:57,000 --> 00:00:59,000
Uh, or is it here?

20
00:00:59,000 --> 00:01:00,000
How?

21
00:01:00,000 --> 00:01:01,000
Import it.

22
00:01:01,000 --> 00:01:03,000
Make sure you select all.

23
00:01:04,000 --> 00:01:09,000
There are some audio we're going to use later and there is a Sprite for player that we are also going

24
00:01:09,000 --> 00:01:09,000
to use later.

25
00:01:09,000 --> 00:01:11,000
Click, import and reload.

26
00:01:11,000 --> 00:01:16,000
In the project window, you can find all of the files that can be used in your game.

27
00:01:16,000 --> 00:01:19,000
Anything you add to your project is going to be here.

28
00:01:19,000 --> 00:01:24,000
For example, now we have graphics and audio in there, right in the hierarchy.

29
00:01:24,000 --> 00:01:30,000
Over here you can see all of the game objects that are in the scene at the moment.

30
00:01:30,000 --> 00:01:35,000
So right now we can see main camera that allows us to see the game.

31
00:01:35,000 --> 00:01:41,000
There is a square, square one and square two on the right side, you can see Inspector, we use it

32
00:01:41,000 --> 00:01:43,000
to inspect the game objects.

33
00:01:43,000 --> 00:01:49,000
For example, square over here has two components transform enterprise renderer and I can see it in

34
00:01:49,000 --> 00:01:50,000
the inspector.

35
00:01:50,000 --> 00:01:54,000
We can add different components in here, but we're going to talk about them a bit later.

36
00:01:54,000 --> 00:02:01,000
For now, we have just transform component, which is responsible for position of the object for its

37
00:02:01,000 --> 00:02:02,000
rotation and a scale.

38
00:02:02,000 --> 00:02:08,000
And if I change X over here, you can see immediately that my square moves to the left.

39
00:02:08,000 --> 00:02:13,000
If I change it to the bigger value, it moves to the right and we can see changes in the scene window

40
00:02:13,000 --> 00:02:15,000
and in the game window.

41
00:02:15,000 --> 00:02:20,000
If I change Sprite renderer, let's say color, we can see changes as well.

42
00:02:21,000 --> 00:02:26,000
Now there is a game window and a CIN window in the game window.

43
00:02:26,000 --> 00:02:31,000
We see what camera sees, what player will see when he plays the game.

44
00:02:31,000 --> 00:02:37,000
And in the scene window we can see everything that is, let's say, behind the curtain.

45
00:02:37,000 --> 00:02:38,000
All right.

46
00:02:38,000 --> 00:02:40,000
So we do all of the setup here.

47
00:02:40,000 --> 00:02:44,000
For example, we need to move the square, we move it here.

48
00:02:44,000 --> 00:02:49,000
We need to change the size, we move it, we can change it here and place, objects and so on.

49
00:02:49,000 --> 00:02:54,000
So we don't have to change this X and Y in the inspector all the time.

50
00:02:54,000 --> 00:02:56,000
It is easier to do it here.

51
00:02:57,000 --> 00:02:59,000
I'm going to resize it a bit.

52
00:02:59,000 --> 00:03:04,000
And if I click right mouse button over here and choose horizontal, this will become horizontal.

53
00:03:04,000 --> 00:03:07,000
And I need it to explain the tools and their hotkeys.

54
00:03:07,000 --> 00:03:14,000
It is very easy to remember them because we have view tool move to rotate tool scale, tool, rectal

55
00:03:14,000 --> 00:03:18,000
and transform tool one after each other, just like a keys on the keyboard.

56
00:03:18,000 --> 00:03:20,000
And watch this.

57
00:03:20,000 --> 00:03:22,000
This is q w.

58
00:03:22,000 --> 00:03:23,000
E.

59
00:03:23,000 --> 00:03:23,000
R.

60
00:03:24,000 --> 00:03:25,000
T y.

61
00:03:25,000 --> 00:03:25,000
All right.

62
00:03:26,000 --> 00:03:29,000
It's very easy to switch between them and very easy to remember them.

63
00:03:29,000 --> 00:03:30,000
Now, what is a Q?

64
00:03:30,000 --> 00:03:31,000
What is a view tool?

65
00:03:31,000 --> 00:03:38,000
View tool allows us to navigate around the scene just like that move tool allows us to move the object.

66
00:03:38,000 --> 00:03:44,000
So if I select the square, we can see this gizmo over here with the arrows and now I can move the object.

67
00:03:44,000 --> 00:03:47,000
There is a rotation tool on the E and we can rotate it.

68
00:03:47,000 --> 00:03:49,000
Then I press control Z to change it.

69
00:03:49,000 --> 00:03:57,000
Back then there is a T scale tool which allows us to scale the object, but for scaling I prefer to

70
00:03:57,000 --> 00:03:57,000
use Inspector.

71
00:03:57,000 --> 00:04:01,000
I can put more precise value here to define what size I need.

72
00:04:03,000 --> 00:04:10,000
And there is a tool which allows us to drag object like this to change its scale as well.

73
00:04:10,000 --> 00:04:11,000
Very useful.

74
00:04:11,000 --> 00:04:14,000
We're going to use it a lot for making platforms in this game.

75
00:04:14,000 --> 00:04:14,000
Right.

76
00:04:14,000 --> 00:04:19,000
And something else I want to say here to navigate around this scene, you don't need to choose View

77
00:04:19,000 --> 00:04:25,000
tool every time you can just hold your will button on your mouse like that and navigate around.

78
00:04:25,000 --> 00:04:26,000
That is very easy to do, right?

79
00:04:26,000 --> 00:04:28,000
That is much more comfortable.

80
00:04:28,000 --> 00:04:34,000
So let's say, and when I move my square, I change my view somewhere here.

81
00:04:34,000 --> 00:04:36,000
So I just use my mouse for this.

82
00:04:36,000 --> 00:04:40,000
Then I can rotate and change it again and so on.

83
00:04:40,000 --> 00:04:42,000
Very useful, very easy to remember.

84
00:04:42,000 --> 00:04:47,000
And basically that's all what I want to share in this video.

85
00:04:47,000 --> 00:04:48,000
Thank you for attention.

86
00:04:48,000 --> 00:04:49,000
And let's go to the next video.

87
00:04:49,000 --> 00:04:50,000
Let's make something.

