1 00:00:05,770 --> 00:00:06,440 Hey everyone. 2 00:00:07,070 --> 00:00:10,310 So in this video we will cover two more very simple functions. 3 00:00:10,360 --> 00:00:11,070 Let's just live under. 4 00:00:11,080 --> 00:00:12,730 We have called him. 5 00:00:12,850 --> 00:00:20,860 That is again the school drop maybe go and pass the perimeter because we need something that we won't 6 00:00:20,860 --> 00:00:21,690 do anymore. 7 00:00:22,090 --> 00:00:24,610 Now removing the AG is very simple. 8 00:00:24,610 --> 00:00:30,110 First we will just remove the egg from the main list so that its data will be removed. 9 00:00:30,160 --> 00:00:32,170 After that we will drop a life. 10 00:00:32,260 --> 00:00:34,210 Every life is already zero. 11 00:00:34,210 --> 00:00:35,470 Just the game is over. 12 00:00:35,470 --> 00:00:40,780 In that case we will just show our message books you your game is over and with that when we also do 13 00:00:40,780 --> 00:00:42,350 know the final score. 14 00:00:43,120 --> 00:00:50,060 So let's go first of all to remove the value I will just use eggs not remove. 15 00:00:50,200 --> 00:00:54,540 That is my list and remove matter and what do you want to remove. 16 00:00:54,940 --> 00:00:58,810 Just the X after that one losing a life. 17 00:00:58,810 --> 00:01:04,950 For that I will call a function loser life that I will define after this one after that one. 18 00:01:05,590 --> 00:01:09,190 If the lives remaining are already zero. 19 00:01:09,760 --> 00:01:16,090 In that case I would just show the info with the help of a message box so we'll just message box not 20 00:01:16,090 --> 00:01:18,260 showing for you. 21 00:01:18,940 --> 00:01:24,850 And something like first game over with this symbol. 22 00:01:25,060 --> 00:01:33,310 After that when we also pass their final score space thoughts and then again space plus the whatever 23 00:01:33,310 --> 00:01:38,390 the score at that particular time will string and pass their scope. 24 00:01:38,390 --> 00:01:39,100 There we go. 25 00:01:39,760 --> 00:01:46,090 And as soon as this didn't happen when they use it click okay just destroy the window so that there 26 00:01:46,090 --> 00:01:47,140 will be nothing there. 27 00:01:48,260 --> 00:01:48,800 There we go. 28 00:01:49,540 --> 00:01:55,000 So this is how you can make the eggs drop after that one losing a life. 29 00:01:55,000 --> 00:01:59,150 So define lose and the score a the life. 30 00:01:59,200 --> 00:02:00,250 And this is very simple. 31 00:02:02,430 --> 00:02:08,140 I would just take our global variable lives too many and recommend this one 32 00:02:11,020 --> 00:02:13,120 with a vector one each time. 33 00:02:14,680 --> 00:02:20,200 So whenever this one is called The Light will decrease by fun and how we like update that one there. 34 00:02:20,230 --> 00:02:25,390 So that is something known as configuration of item when the item is in a canvas. 35 00:02:25,390 --> 00:02:35,680 So when the item is in canvas you see Dot item configure and in other cases we just use config justice 36 00:02:35,750 --> 00:02:43,790 but not DUI and then provide data what you want to have for us to analyze and just call text and then 37 00:02:43,790 --> 00:02:56,170 we have the text equal to first day lives the dots and then pass the current lights remaining so strings 38 00:02:56,170 --> 00:03:00,820 of lights to meet maybe. 39 00:03:01,550 --> 00:03:03,380 So here we are not only that for months or.