1 00:00:05,290 --> 00:00:06,400 Here we go. 2 00:00:06,870 --> 00:00:12,090 So in this video we do find two more functions that is a game over and dismissal. 3 00:00:12,160 --> 00:00:17,710 So first of all game over a function you are going to require in any kind of game you're going to create. 4 00:00:17,710 --> 00:00:21,120 So whenever the game is over there are some things happen there. 5 00:00:21,130 --> 00:00:23,810 You generally see everything going out from there. 6 00:00:24,130 --> 00:00:25,430 And just game over it. 7 00:00:26,020 --> 00:00:27,800 So there's not something a new slide. 8 00:00:27,970 --> 00:00:28,770 Actually we. 9 00:00:28,840 --> 00:00:29,770 What we do there. 10 00:00:30,400 --> 00:00:38,970 We hide all the things there that actually at this same position but hidden and how we hide them. 11 00:00:39,010 --> 00:00:39,910 Just look at this one. 12 00:00:40,630 --> 00:00:42,810 So first of all I have a caterpillar. 13 00:00:43,780 --> 00:00:46,090 Then I have a leaf. 14 00:00:46,390 --> 00:00:49,270 And if you remember we have a background color yellow. 15 00:00:49,390 --> 00:00:58,370 What we will do which is the caterpillar color to yellow so that at that point did not get visible. 16 00:00:58,370 --> 00:01:02,660 And also the leaf color yellow. 17 00:01:02,960 --> 00:01:07,510 So I think you'll agree this with this man now that they are actually there. 18 00:01:07,520 --> 00:01:09,940 We have just changed their color just like the background. 19 00:01:10,430 --> 00:01:16,240 So when I have like this fine Caterpillar or exit or be white when I change the color like this background 20 00:01:16,340 --> 00:01:19,260 paper then you will not able to see this. 21 00:01:19,460 --> 00:01:22,320 So that something you I agree with. 22 00:01:22,940 --> 00:01:28,190 After that one just bend up and hide. 23 00:01:28,190 --> 00:01:28,670 Dr. 24 00:01:32,430 --> 00:01:34,470 and after that one we will just write 25 00:01:37,760 --> 00:01:45,390 there's something really not like game a la and this is actually at the same position at the original 26 00:01:45,390 --> 00:01:49,510 text just like press base to here. 27 00:01:49,620 --> 00:01:54,760 This one if I remember this one and I'm making this one also capital. 28 00:01:55,110 --> 00:02:03,490 So right here in capital letters like came over something like that one or if you want any other text 29 00:02:03,490 --> 00:02:05,420 then you can add that one also. 30 00:02:05,640 --> 00:02:11,590 And this symbol also maybe after they've been aligned this one to center 31 00:02:15,200 --> 00:02:22,510 maybe labial and provided font like the right one. 32 00:02:22,640 --> 00:02:24,680 So we are in. 33 00:02:24,930 --> 00:02:25,580 There we go. 34 00:02:25,610 --> 00:02:35,100 And this size will be a little larger say 30 and if you want this one bold than for white ball or I'm 35 00:02:35,100 --> 00:02:36,630 going for normal this time. 36 00:02:36,630 --> 00:02:40,080 So this is another other type of font you can use 37 00:02:42,910 --> 00:02:44,730 and this one at 38 00:02:48,460 --> 00:02:51,100 now we have defined game over function. 39 00:02:51,310 --> 00:02:53,430 And this is all about this one. 40 00:02:53,460 --> 00:03:00,130 And you can look at this one this is very easy to define after this one we had to displace coal and 41 00:03:00,190 --> 00:03:03,600 I will define this one like first I will clear AB protects them. 42 00:03:03,730 --> 00:03:09,520 The previous code or if any text presented then I will assign this one the corner position so that it 43 00:03:09,520 --> 00:03:16,570 will be separated from the main window and then I will update this code whenever I go to this code ability. 44 00:03:16,570 --> 00:03:22,410 So first of all we had this total by name school total. 45 00:03:23,070 --> 00:03:29,330 So make this one clear and make the pen up sword or pen up. 46 00:03:29,520 --> 00:03:37,310 No you know I only find two coordinates x and light and focus on that one and how I'm defining this. 47 00:03:37,320 --> 00:03:44,790 So basically if I consider this whole screen in four parts like that from here and cut from here then 48 00:03:44,790 --> 00:03:51,540 I have a basic four coordinate Cartesian system so it to coordinate conditions system in which I had 49 00:03:51,540 --> 00:03:55,540 this one first this one second. 50 00:03:55,740 --> 00:03:58,680 This one third and this one fourth part of graph. 51 00:03:58,980 --> 00:04:04,710 So if you remember this in mathematics this 20 something then we have X and Y both positive this one 52 00:04:04,770 --> 00:04:12,350 X negative y positive in this corner both are negative in this one X is positive and why is negative. 53 00:04:13,110 --> 00:04:20,220 So that something maybe understandable if this is my center like the positive x positive y negative 54 00:04:20,220 --> 00:04:29,060 y negative X so I will declare first x and y by defining first the complete root. 55 00:04:29,160 --> 00:04:39,230 So do you know what we know underscore word libido and taking the half of that one so that I have only 56 00:04:39,590 --> 00:04:53,330 from this point to this point then I will do same with the y axis but height this time maybe will now 57 00:04:53,360 --> 00:04:59,930 I have to focus on my closer from this point to this point and this point to this point it mean I have 58 00:04:59,930 --> 00:05:06,440 the first quadrant and the rest quadrant I am not selected you can select any of the quadrant by changing 59 00:05:06,440 --> 00:05:07,940 the assign. 60 00:05:08,090 --> 00:05:15,920 So if you want this one make both of these negative so let's all always select your critical quadrant. 61 00:05:15,960 --> 00:05:23,220 Now I'm in first quadrant What will I do now I will align my score underscored I tend to do very right 62 00:05:23,880 --> 00:05:31,490 just like this one align center I have here I will do same here just simply score underscore total not 63 00:05:31,500 --> 00:05:40,000 right and they're just past this one first of all we have a new updated score that is going to be our 64 00:05:40,020 --> 00:05:48,600 string and are past current scored that is already a bill containing the current score after that when 65 00:05:48,960 --> 00:05:58,080 align this hole to be ready right this what I need to tell you here now instead of center I have aligned 66 00:05:58,140 --> 00:06:05,160 this one two very right so at this point like this bar here or this city so they added ready right position 67 00:06:05,880 --> 00:06:07,090 just like this. 68 00:06:07,140 --> 00:06:10,080 Now you can make this one go. 69 00:06:10,110 --> 00:06:16,380 But what I'm going to do here I'm going to provide some padding like this folder is separated from wildly 70 00:06:16,470 --> 00:06:22,080 with a gap here say this is maybe 50 pixel and this one also 50 pixel. 71 00:06:22,080 --> 00:06:27,420 So this is known as padding separation of main text from the boundaries. 72 00:06:27,600 --> 00:06:32,150 So I'm making a gap here minus 50 and minus 50. 73 00:06:32,240 --> 00:06:36,840 And just like we have defined the boundary for a total in the total module. 74 00:06:37,910 --> 00:06:42,950 So this is about defining the display school that how you can define your display score more you can 75 00:06:42,950 --> 00:06:55,190 just add here deformed that is I'm going to add here again and I'll size it this time 40 and that one 76 00:06:55,700 --> 00:07:01,770 bowl maybe will now we have defined the display scored also. 77 00:07:01,850 --> 00:07:07,100 So this is about these two in the next we will focus on our main problem all we can say May logic of 78 00:07:07,100 --> 00:07:08,210 our program. 79 00:07:08,210 --> 00:07:09,240 So thanks for watching. 80 00:07:09,570 --> 00:07:10,430 So in the next video.