1
00:00:00,000 --> 00:00:03,360
Welcome back, my fellow game developers.

2
00:00:03,360 --> 00:00:04,920
In this video, as you can see,

3
00:00:04,920 --> 00:00:07,020
we've created a victory,

4
00:00:07,019 --> 00:00:08,879
seen nothing too special,

5
00:00:08,880 --> 00:00:12,150
nothing too fancy, and just have the victory.

6
00:00:12,150 --> 00:00:14,600
We have press any key, we collect,

7
00:00:14,595 --> 00:00:15,765
we go to the main menu,

8
00:00:15,765 --> 00:00:17,715
we start game, we just start again.

9
00:00:17,715 --> 00:00:19,865
We have this weird for some reason,

10
00:00:19,860 --> 00:00:22,010
we have the weapon not working properly.

11
00:00:22,005 --> 00:00:23,315
We'll deal with that later on

12
00:00:23,310 --> 00:00:24,600
for some reason when we move

13
00:00:24,600 --> 00:00:25,710
through the levels might be

14
00:00:25,710 --> 00:00:27,720
something got lost along the way.

15
00:00:27,720 --> 00:00:29,550
But there is something I want to do in

16
00:00:29,550 --> 00:00:31,520
this introduction and I would not think

17
00:00:31,515 --> 00:00:33,515
of while doing the video and

18
00:00:33,510 --> 00:00:35,940
that is adding the layer right here.

19
00:00:35,935 --> 00:00:37,885
What I'm going to do is right-click in

20
00:00:37,880 --> 00:00:40,460
the victory Canvas and the UI.

21
00:00:40,460 --> 00:00:41,480
It will be very simple.

22
00:00:41,480 --> 00:00:42,700
You will remember to do this.

23
00:00:42,695 --> 00:00:44,645
I will call this D layer.

24
00:00:44,645 --> 00:00:47,285
I will add the sprite to him,

25
00:00:47,285 --> 00:00:48,875
send him to the night upsized.

26
00:00:48,875 --> 00:00:51,085
And then I will create an animation

27
00:00:51,080 --> 00:00:53,960
which is in the assets animation.

28
00:00:53,960 --> 00:00:55,910
And let's see, I do believe

29
00:00:55,910 --> 00:00:58,100
I made the dancing player in here.

30
00:00:58,100 --> 00:01:01,430
Let's remove this and create my own dancing player.

31
00:01:01,430 --> 00:01:02,590
So save that.

32
00:01:02,585 --> 00:01:04,355
Yes, I want to replace them.

33
00:01:04,355 --> 00:01:07,205
And then I will create the animation

34
00:01:07,205 --> 00:01:10,135
of the dancing players or select these two,

35
00:01:10,130 --> 00:01:11,470
set them in here,

36
00:01:11,465 --> 00:01:13,555
and let's look at that.

37
00:01:13,550 --> 00:01:16,040
Okay, that's too fast.

38
00:01:16,040 --> 00:01:17,990
Stop, stop, stop, stop, stop, stop.

39
00:01:17,990 --> 00:01:20,750
Copy this, paste it in here.

40
00:01:20,750 --> 00:01:22,580
And let's see how that looks.

41
00:01:22,580 --> 00:01:24,590
That's still extremely fast.

42
00:01:24,590 --> 00:01:27,760
Let's add them five apart.

43
00:01:27,755 --> 00:01:31,975
And yet it doesn't look very good.

44
00:01:31,970 --> 00:01:34,400
But yeah, we, we would like to have

45
00:01:34,400 --> 00:01:37,580
the player doing the Cancun on each side.

46
00:01:37,580 --> 00:01:40,820
So we set one here, duplicate it,

47
00:01:40,820 --> 00:01:43,370
set one here, but we are going to

48
00:01:43,370 --> 00:01:46,570
make the scale of this minus one.

49
00:01:46,565 --> 00:01:49,415
So now when we run the game,

50
00:01:49,415 --> 00:01:52,255
I mean we run the victory screen. There you go.

51
00:01:52,250 --> 00:01:54,460
We have two ken, Ken's,

52
00:01:54,455 --> 00:01:57,275
the victory and plus NEG,

53
00:01:57,275 --> 00:01:59,185
and then we go to the layer.

54
00:01:59,180 --> 00:02:00,710
Excellent. So as you can see,

55
00:02:00,710 --> 00:02:02,780
obviously there is a problem here.

56
00:02:02,780 --> 00:02:04,850
We will look into it later on, but for now,

57
00:02:04,850 --> 00:02:06,860
let's not waste any more time and let's get to

58
00:02:06,860 --> 00:02:10,240
the victory screen finally.

59
00:02:10,235 --> 00:02:12,175
0 case.

60
00:02:12,170 --> 00:02:14,980
So now that we have a title screen,

61
00:02:14,975 --> 00:02:18,035
we also want to create a vector screen.

62
00:02:18,035 --> 00:02:20,795
So let's go ahead and do just that.

63
00:02:20,795 --> 00:02:23,395
I'm going to go into my sprites,

64
00:02:23,390 --> 00:02:26,230
that I say sprites, I meant my scenes.

65
00:02:26,225 --> 00:02:27,745
And in scenes I'm going

66
00:02:27,740 --> 00:02:30,070
to go ahead and create a new scene.

67
00:02:30,065 --> 00:02:31,925
So right-click Create.

68
00:02:31,925 --> 00:02:33,925
Oh, where's the scene?

69
00:02:33,920 --> 00:02:35,510
And here, there we go.

70
00:02:35,510 --> 00:02:37,160
So scene, and this will be

71
00:02:37,160 --> 00:02:40,640
the victory screen or

72
00:02:40,640 --> 00:02:43,790
Vector3 scene or whatever you wanna call it, hit Enter.

73
00:02:43,790 --> 00:02:46,750
And let's just add it to the build settings right now.

74
00:02:46,745 --> 00:02:50,675
So I'm going to drag the victory seen screen right here.

75
00:02:50,675 --> 00:02:52,385
There we go. Open it up.

76
00:02:52,385 --> 00:02:53,705
As you can see, we have

77
00:02:53,705 --> 00:02:56,785
absolutely nothing will keep this thing simple.

78
00:02:56,780 --> 00:02:58,000
It's very easy.

79
00:02:57,995 --> 00:03:01,525
So I'm just going to go to your Canvas and this

80
00:03:01,520 --> 00:03:05,260
will be the victory Canvas.

81
00:03:05,255 --> 00:03:06,535
Nothing too much in here,

82
00:03:06,530 --> 00:03:11,320
so just the canvas scaler that's set to 1920 by 1080.

83
00:03:11,315 --> 00:03:14,555
So here we go, 1920.

84
00:03:14,555 --> 00:03:18,455
Then AT, and you're very familiar with what's going on.

85
00:03:18,455 --> 00:03:20,605
There is just one thing that will be maybe

86
00:03:20,600 --> 00:03:23,120
just a little bit particular.

87
00:03:23,120 --> 00:03:25,910
So I'm going to know not just yet,

88
00:03:25,910 --> 00:03:27,970
not the challenge, just yet.

89
00:03:27,965 --> 00:03:30,025
Let me just do a couple of things in here.

90
00:03:30,020 --> 00:03:31,730
So this is our victory scene.

91
00:03:31,730 --> 00:03:32,900
Let's see how it looks in game.

92
00:03:32,900 --> 00:03:37,480
Okay, so right-click, let's create a image,

93
00:03:37,475 --> 00:03:40,105
image here, and let's make sure that it

94
00:03:40,100 --> 00:03:42,710
fills up the whole screen just like that.

95
00:03:42,710 --> 00:03:45,350
Let's make it completely black.

96
00:03:45,350 --> 00:03:46,580
Or you can keep it wide,

97
00:03:46,580 --> 00:03:47,690
you can do whatever we want.

98
00:03:47,690 --> 00:03:49,470
So I'm going to set to black.

99
00:03:49,474 --> 00:03:52,524
And in here I'm going to say that I

100
00:03:52,520 --> 00:03:55,880
also want to add a text Mesh probe.

101
00:03:55,880 --> 00:03:56,780
The stacks.

102
00:03:56,780 --> 00:04:02,680
Much pro will be the victory text.

103
00:04:02,675 --> 00:04:03,895
There we go.

104
00:04:03,890 --> 00:04:08,140
Let's make it auto size, increase the max.

105
00:04:08,135 --> 00:04:10,525
And let's just make it a bit bigger.

106
00:04:10,520 --> 00:04:13,180
There we go. Let's change, make it bold.

107
00:04:13,175 --> 00:04:14,885
Make it in the middle.

108
00:04:14,885 --> 00:04:17,105
Set it to the Robo.

109
00:04:17,105 --> 00:04:20,405
And let's remove the underlay from here.

110
00:04:20,405 --> 00:04:23,935
I'm not liking that underlaid that much water,

111
00:04:23,930 --> 00:04:26,210
so let's just try it in here.

112
00:04:26,210 --> 00:04:29,770
Victory with a couple of exclamation marks

113
00:04:29,765 --> 00:04:31,345
and will increase the max to

114
00:04:31,340 --> 00:04:33,170
fit this entire screen. There we go.

115
00:04:33,170 --> 00:04:34,700
So factory.

116
00:04:34,700 --> 00:04:36,830
And then what we're going to do is we're

117
00:04:36,830 --> 00:04:39,130
going to duplicate this text,

118
00:04:39,125 --> 00:04:40,825
move it down a bit,

119
00:04:40,820 --> 00:04:43,750
and maybe sizes down.

120
00:04:43,745 --> 00:04:47,285
Oops, and this will read.

121
00:04:47,285 --> 00:04:55,835
Whereas it, so this will be the press any key.

122
00:04:55,835 --> 00:04:59,495
And in here, press

123
00:05:00,640 --> 00:05:08,930
any key to return to main menu.

124
00:05:08,925 --> 00:05:12,825
So there we go, press any key to return to the main menu.

125
00:05:12,820 --> 00:05:16,320
Let's just run this game and see how that looks.

126
00:05:16,315 --> 00:05:18,075
And there we go.

127
00:05:18,070 --> 00:05:19,930
So as you can see, victory press any

128
00:05:19,930 --> 00:05:21,910
key to return to the main menu.

129
00:05:21,910 --> 00:05:25,780
Very simple, nothing very complicated.

130
00:05:25,780 --> 00:05:27,100
So I'm going to issue you

131
00:05:27,100 --> 00:05:28,660
a small challenge to make

132
00:05:28,660 --> 00:05:30,570
the text appear after two seconds.

133
00:05:30,565 --> 00:05:33,525
So create an animation that makes the text appear after

134
00:05:33,520 --> 00:05:36,990
two seconds and do this without any code.

135
00:05:36,985 --> 00:05:39,105
And if you want an extra challenge

136
00:05:39,100 --> 00:05:41,220
that I haven't included in the slide,

137
00:05:41,215 --> 00:05:43,785
you can also create a way

138
00:05:43,780 --> 00:05:46,790
for us to press any kind of button.

139
00:05:46,794 --> 00:05:49,584
So we don't need to do a bit of research here.

140
00:05:49,585 --> 00:05:53,785
So we press any button and then we go to the main menu.

141
00:05:53,780 --> 00:05:56,870
That is also a challenge for you to do on both sides.

142
00:05:56,870 --> 00:05:58,180
So that out of the way,

143
00:05:58,175 --> 00:06:02,755
pause the video right now and then go to the challenge.

144
00:06:02,750 --> 00:06:04,700
Okay, welcome back.

145
00:06:04,700 --> 00:06:06,440
So what we're going to do in here

146
00:06:06,440 --> 00:06:09,650
is we're going to just create an animation.

147
00:06:09,650 --> 00:06:12,860
And we'll go into the assets animations

148
00:06:12,860 --> 00:06:17,270
and let's create a new folder for the victory.

149
00:06:17,270 --> 00:06:19,240
Text.

150
00:06:19,235 --> 00:06:22,435
Opened up, opened up,

151
00:06:22,430 --> 00:06:25,240
and hear beer.

152
00:06:25,235 --> 00:06:28,555
After two seconds.

153
00:06:28,550 --> 00:06:32,060
And I feel, look how many folders now we have.

154
00:06:32,060 --> 00:06:33,830
And I feel this oh,

155
00:06:33,830 --> 00:06:35,420
project was about creating

156
00:06:35,420 --> 00:06:37,870
as many folders as you possibly can.

157
00:06:37,865 --> 00:06:41,245
So welcome to the newest version

158
00:06:41,240 --> 00:06:44,060
of creating the most folders that you can.

159
00:06:44,060 --> 00:06:45,980
Anyways, let's continue on.

160
00:06:45,980 --> 00:06:47,660
So we have this right here.

161
00:06:47,660 --> 00:06:51,650
We're going to access the press any key text.

162
00:06:51,650 --> 00:06:56,180
And in here I'm going to add a canvas group.

163
00:06:56,180 --> 00:06:57,970
So this group.

164
00:06:57,965 --> 00:07:01,285
So now we can play around with the Alpha.

165
00:07:01,280 --> 00:07:03,520
There we go. And let's remove

166
00:07:03,515 --> 00:07:06,715
the interactivity and the blocking the re-cast.

167
00:07:06,710 --> 00:07:08,510
And in here we're going to press

168
00:07:08,510 --> 00:07:11,680
record and after two seconds.

169
00:07:11,675 --> 00:07:14,495
So we'll start off at 0.

170
00:07:14,495 --> 00:07:17,675
And at the 2 second mark,

171
00:07:17,950 --> 00:07:23,840
we are going to stay at 0 and maybe add the ticket,

172
00:07:23,840 --> 00:07:25,790
maybe 1 second to load.

173
00:07:25,790 --> 00:07:28,240
So in here this will become one.

174
00:07:28,235 --> 00:07:30,955
But at the 2 second mark.

175
00:07:30,950 --> 00:07:33,670
So as you can see, this will progress slowly.

176
00:07:33,665 --> 00:07:35,845
So no, I don't want it to be like that.

177
00:07:35,840 --> 00:07:37,970
I want to add 0, have this.

178
00:07:37,970 --> 00:07:41,470
And how are we going to make the salt appears on its own?

179
00:07:41,465 --> 00:07:45,755
Well, this will be probably a bit shocking to you,

180
00:07:45,755 --> 00:07:47,585
but when we run the game,

181
00:07:47,585 --> 00:07:49,265
this will happen all on its own.

182
00:07:49,265 --> 00:07:51,925
So we start the level.

183
00:07:51,920 --> 00:07:55,780
Then we come 12. There we go.

184
00:07:55,775 --> 00:07:57,305
So we have the text appearing.

185
00:07:57,305 --> 00:08:00,185
Obviously we do not want to have looping.

186
00:08:00,184 --> 00:08:02,214
So I'm going to go to

187
00:08:02,210 --> 00:08:06,370
the victory and make sure that we don't loop.

188
00:08:06,365 --> 00:08:08,645
Now the next thing to do is to have

189
00:08:08,645 --> 00:08:11,125
us press any key to go back to the main menu.

190
00:08:11,120 --> 00:08:15,110
So I'm going to go into the scripts in here.

191
00:08:15,110 --> 00:08:16,640
And where should we added?

192
00:08:16,640 --> 00:08:17,920
Let's just add it in the UI.

193
00:08:17,915 --> 00:08:20,255
I think this is a good place for it.

194
00:08:20,255 --> 00:08:24,325
And let's right-click create C-sharp.

195
00:08:24,320 --> 00:08:26,660
Victory. No, Actually, you know

196
00:08:26,660 --> 00:08:28,690
what you are is a bad place for this.

197
00:08:28,685 --> 00:08:32,645
Anyways, victory screen.

198
00:08:32,645 --> 00:08:35,105
And this will be extremely simple.

199
00:08:35,105 --> 00:08:36,655
But where should I put it?

200
00:08:36,650 --> 00:08:39,620
If not in the UI folder?

201
00:08:39,620 --> 00:08:43,160
Scripts, Let's see, traps,

202
00:08:43,160 --> 00:08:44,980
weapons, menus, yeah, monument.

203
00:08:44,975 --> 00:08:46,645
Sure, menu is a better place.

204
00:08:46,640 --> 00:08:52,480
So let's drag this victory and to the menu folder.

205
00:08:52,475 --> 00:08:54,445
And in menu folder, let's just add

206
00:08:54,440 --> 00:08:57,930
the victory to the victory Canvas.

207
00:08:57,934 --> 00:09:00,174
And in here Let's double-click opens

208
00:09:00,170 --> 00:09:02,650
up, remove the start.

209
00:09:02,645 --> 00:09:04,765
We don't need it for now.

210
00:09:04,760 --> 00:09:06,200
And because we are going to

211
00:09:06,200 --> 00:09:08,000
be changing from scene to scene,

212
00:09:08,000 --> 00:09:12,680
we'll just add the UI scene manager or seen management.

213
00:09:12,680 --> 00:09:14,810
And in here we are going to say

214
00:09:14,810 --> 00:09:19,400
the input dot get key down or not,

215
00:09:19,400 --> 00:09:20,990
sorry, not get key down because we

216
00:09:20,990 --> 00:09:22,750
don't want any specific key.

217
00:09:22,745 --> 00:09:26,025
So in here, I hope you tried to do a bit of research.

218
00:09:26,029 --> 00:09:29,889
There is something called the any key down.

219
00:09:29,885 --> 00:09:34,255
And we're just going to say that, and this is enough.

220
00:09:34,250 --> 00:09:36,260
And you can see right here returns true.

221
00:09:36,260 --> 00:09:38,260
The first frame, the user hits

222
00:09:38,255 --> 00:09:40,655
any key or even a mouse button.

223
00:09:40,655 --> 00:09:42,385
So then we are going to go to

224
00:09:42,380 --> 00:09:45,190
Scene Manager dot load seen.

225
00:09:45,185 --> 00:09:46,795
And we are going to load

226
00:09:46,790 --> 00:09:49,760
the first scene because we know that always,

227
00:09:49,760 --> 00:09:52,010
always, always the title menu will be

228
00:09:52,010 --> 00:09:54,580
the first C. So save that.

229
00:09:54,575 --> 00:09:56,645
We go back into our game.

230
00:09:56,645 --> 00:10:00,575
We are going to run the gain.

231
00:10:00,575 --> 00:10:03,415
So there we go, victory. Two seconds.

232
00:10:03,410 --> 00:10:06,050
Press any key to continue at Demos button.

233
00:10:06,050 --> 00:10:07,370
And now we are on

234
00:10:07,370 --> 00:10:09,340
the title menu scene

235
00:10:09,335 --> 00:10:11,615
and something that I forgot to tell you.

236
00:10:11,615 --> 00:10:13,675
And that is that you can

237
00:10:13,670 --> 00:10:17,530
actually maybe add some kind of music in here.

238
00:10:17,525 --> 00:10:20,185
So you can see we can exit, start the game.

239
00:10:20,180 --> 00:10:22,760
And there we go. We are again starting the game.

240
00:10:22,760 --> 00:10:24,350
Whoa, what is that?

241
00:10:24,350 --> 00:10:26,140
What is that?

242
00:10:26,135 --> 00:10:28,135
Seems like some kind of flame thrower.

243
00:10:28,130 --> 00:10:30,380
I think there is a small problem,

244
00:10:30,380 --> 00:10:32,470
but let's not worry about that for now.

245
00:10:32,465 --> 00:10:34,415
We'll fix the problem later on.

246
00:10:34,415 --> 00:10:37,255
Obviously there is some kind of error and some kind of

247
00:10:37,250 --> 00:10:40,580
part of the code because of the way we are transitioning,

248
00:10:40,580 --> 00:10:43,030
but don't worry about that later on.

249
00:10:43,025 --> 00:10:45,295
Maybe I believe the last section where we

250
00:10:45,290 --> 00:10:49,040
actually do the advanced unity or advanced C-sharp,

251
00:10:49,040 --> 00:10:51,070
One of those, we actually create

252
00:10:51,065 --> 00:10:54,565
a very sophisticated way of going through levels,

253
00:10:54,560 --> 00:10:56,090
keeping everything with us.

254
00:10:56,090 --> 00:10:57,950
So we got out of the way.

255
00:10:57,950 --> 00:11:00,100
Thank you for watching. I hope you are enjoying.

256
00:11:00,095 --> 00:11:03,265
I hope you are staging all of your files.

257
00:11:03,260 --> 00:11:05,250
Staging all of your files,

258
00:11:05,254 --> 00:11:07,444
committing all of your changes.

259
00:11:07,445 --> 00:11:13,945
Just made a victory screen.

260
00:11:13,940 --> 00:11:15,890
Commit the changes.

261
00:11:15,890 --> 00:11:18,540
And I'll see you in the next.

