1 00:00:05,970 --> 00:00:09,600 Here even so in the last video we have created of a battle. 2 00:00:09,690 --> 00:00:10,730 Now we will move further. 3 00:00:11,220 --> 00:00:15,200 But at this point we are something like We don't know what to do next. 4 00:00:15,300 --> 00:00:18,230 Like where to begin and how can I do these things. 5 00:00:18,240 --> 00:00:22,770 Do I have to search the Internet and a lot more things are going in your mind. 6 00:00:22,830 --> 00:00:27,330 Well the thing here is if you know what you need to do and you have a clear idea. 7 00:00:27,330 --> 00:00:31,350 Go for the functions otherwise try to write the main logic. 8 00:00:31,350 --> 00:00:33,890 Then you will find the things one by one. 9 00:00:34,410 --> 00:00:37,360 And also you need to go to the Internet. 10 00:00:37,830 --> 00:00:45,750 So he'll we have an idea that what we need to do that is basically I'm representing you and that's something 11 00:00:45,760 --> 00:00:50,650 if you look at your schedule let me show you that one 12 00:00:57,720 --> 00:00:58,600 then. 13 00:00:58,620 --> 00:01:05,880 Have you noticed this one clearly then posting you notice the X there is something that is creating 14 00:01:05,880 --> 00:01:07,180 the x. 15 00:01:07,200 --> 00:01:15,750 Second thing the X are falling third there colorful X after that one when we came to the bottom we notice 16 00:01:15,750 --> 00:01:22,730 this one this thing moving that is look like a bowl and we are entering this one as a catcher. 17 00:01:23,040 --> 00:01:25,050 So this is actually catching the x. 18 00:01:25,170 --> 00:01:32,040 Now how about programming is catching the X so that is something and at the point came in focus. 19 00:01:32,050 --> 00:01:34,220 After that one what if the egg drop. 20 00:01:34,820 --> 00:01:38,620 Then who would notice that the egg is actually dropped and there is no drop in the boat. 21 00:01:39,440 --> 00:01:46,460 So this is another thing here that is making sure that is the egg drop or catch after that one when 22 00:01:46,460 --> 00:01:47,540 the egg is dropped. 23 00:01:47,600 --> 00:01:53,390 It would make sure that life is decreased and when the egg is sketched it is taking care of their score 24 00:01:53,390 --> 00:01:57,190 is going to be increased and is increasing by 10 with each factor. 25 00:01:58,250 --> 00:02:03,740 After that when the last thing that went did three eggs are drop the game you need to show the final 26 00:02:03,740 --> 00:02:12,350 score that it is scored and that time so main thing here that we had the idea what we need to do like 27 00:02:12,350 --> 00:02:14,880 all the things stay out of tasks. 28 00:02:14,930 --> 00:02:20,030 So we will perform these tasks one by one we will create the functions for each thing and call them 29 00:02:20,060 --> 00:02:21,610 according to their need. 30 00:02:21,650 --> 00:02:23,520 So let's begin with that one. 31 00:02:23,780 --> 00:02:29,780 And if you don't have idea for your program again I would suggest to go for the main logic that is you 32 00:02:29,780 --> 00:02:31,620 in your mind one by one. 33 00:02:31,640 --> 00:02:34,230 Everything we get solved. 34 00:02:34,460 --> 00:02:42,080 So now first of all before moving to the working here in this video I will create the things like before 35 00:02:42,170 --> 00:02:45,830 making the eggs fold or eggs created one by one. 36 00:02:46,610 --> 00:02:47,870 I need to define the egg. 37 00:02:47,990 --> 00:02:55,490 That how it looked likes I need to define the catcher that what its shape so there is something different 38 00:02:55,490 --> 00:03:00,890 from the working so I am doing these in a separate video and of working in the next videos. 39 00:03:01,820 --> 00:03:05,610 So first of all I will define the egg. 40 00:03:05,610 --> 00:03:11,910 Now you have noticed there that colorful eggs they are getting different colors one by one. 41 00:03:11,960 --> 00:03:14,910 So for that one we have imported this cycle. 42 00:03:15,020 --> 00:03:20,360 We will define a list that contains a number of colors and the cycle will choose a color one by one. 43 00:03:21,620 --> 00:03:32,180 So a variable color cycle it is a list and that contains colors like say light blue 44 00:03:35,390 --> 00:03:37,940 light pink. 45 00:03:37,940 --> 00:03:47,740 After that one light yellow then we have see light left open 46 00:03:51,240 --> 00:03:57,710 or is it green because I don't know is did any like purple color then red. 47 00:03:58,000 --> 00:04:01,660 Here I am adding two more colors than the demo. 48 00:04:01,720 --> 00:04:07,750 Blue green and see also black eggs. 49 00:04:08,710 --> 00:04:12,390 So that's something or possible but also the colorful exact opposite. 50 00:04:13,010 --> 00:04:15,350 And I I'm adding and penalties. 51 00:04:15,460 --> 00:04:17,900 I will tell you what that is now. 52 00:04:18,040 --> 00:04:25,150 Here I have a list that contains a number of colors so of function with select a color one by one and 53 00:04:25,150 --> 00:04:27,760 they will be shown on the X and how will I do that one. 54 00:04:27,790 --> 00:04:36,260 I would just write here cycle Nagle and this one in the cycle so it will select every color one by one 55 00:04:36,410 --> 00:04:38,990 from this one and provided this one too. 56 00:04:40,910 --> 00:04:53,240 After that one the dimensions of X say Edward is equal to 45 an egg height is equal to fifty five after 57 00:04:53,240 --> 00:04:53,800 that one. 58 00:04:53,870 --> 00:04:56,140 Something like on catching egg. 59 00:04:56,360 --> 00:04:58,150 What will be the incrementing score. 60 00:04:58,180 --> 00:05:01,470 So that will be denoted by x goal and there is going to be 10. 61 00:05:01,790 --> 00:05:04,200 So an incremental 10. 62 00:05:04,350 --> 00:05:11,000 Now after this one three variables that you will not understand right now but understand later and are 63 00:05:11,150 --> 00:05:20,590 already familiar with you but their values are not x speed 500 in double the 4000. 64 00:05:22,180 --> 00:05:27,240 After that one difficult defector you will get this one and its value also 65 00:05:30,200 --> 00:05:33,730 so this one is something like increasing speed. 66 00:05:34,220 --> 00:05:38,650 When you catch each week so it's going to be zero point nine five. 67 00:05:38,960 --> 00:05:45,290 And we will multiply this one letter with diligence paid so implementing the speed of disaffected Nagel. 68 00:05:45,770 --> 00:05:48,960 So this is all about the EC. 69 00:05:49,010 --> 00:05:55,380 Now we will go for the catcher so first of all catch us. 70 00:05:55,380 --> 00:06:00,770 Color is same all round a game that is actually blue. 71 00:06:01,170 --> 00:06:03,540 After that one I run my program 72 00:06:06,390 --> 00:06:09,670 then if you notice this one this is actually in middle of the. 73 00:06:09,910 --> 00:06:13,270 Say this one is to compete with it so it is accurate. 74 00:06:13,800 --> 00:06:18,080 And it is all about the height then that one is not in the middle of height. 75 00:06:18,120 --> 00:06:20,920 This is in bottom and with the little gap here. 76 00:06:21,090 --> 00:06:27,930 Like this one is actually 20 and its shape is something like this curve which is not exactly 180 degrees 77 00:06:28,320 --> 00:06:34,100 because if you notice this one this is something less than the line and here also less than denied look 78 00:06:34,200 --> 00:06:39,390 like something 160 degrees tending the LEDs from each side. 79 00:06:39,390 --> 00:06:41,240 After that one it's empty from inside. 80 00:06:41,240 --> 00:06:43,880 So we just need to create an arc. 81 00:06:44,250 --> 00:06:45,780 So let's go for that one. 82 00:06:45,840 --> 00:06:52,980 So for an arc we simply require x not why not an X one white but the coordinates of that one. 83 00:06:53,280 --> 00:06:56,940 And basically the X not and why not for this one are simply x. 84 00:06:56,940 --> 00:07:02,210 Notice the complete width here taking the half of this one. 85 00:07:02,480 --> 00:07:11,470 So like that one here we have this one and then minus catcher it half from this one. 86 00:07:11,660 --> 00:07:13,910 So that is something this part. 87 00:07:13,910 --> 00:07:23,330 So we will get to this point I will tell you this will again complete would have led up to this but 88 00:07:23,710 --> 00:07:29,950 from this point to this point and now from this point I will minus the catcher with top the catch of 89 00:07:29,950 --> 00:07:35,740 its half is total dismount from this point to this point and then I minus this part this portion I will 90 00:07:35,740 --> 00:07:40,060 get to this point and I hope you get this one. 91 00:07:40,060 --> 00:07:48,640 And if I talk about the height then the total height set up to this one minus the catcher height whatever 92 00:07:48,640 --> 00:07:49,520 the is. 93 00:07:49,690 --> 00:07:53,820 So I will get approximately at this point where my groceries. 94 00:07:54,040 --> 00:08:00,360 And then I will need two minus and factor from this is say 20 I will get to this point because this 95 00:08:00,360 --> 00:08:06,540 is not touching the bottom and then the X1 by I've been defined with these variables by adding some 96 00:08:06,540 --> 00:08:13,770 factories in this like if this is X not then I would just add division to pull this one this compute 97 00:08:13,800 --> 00:08:19,410 ketchup plus this one so I will get to this point I think you understand that well because they're very 98 00:08:19,410 --> 00:08:26,070 easy to understand and they get your height will be high that I have created here plus the get you. 99 00:08:27,120 --> 00:08:32,080 So let's do that one and I hope you get this one more you will get when I do this one here. 100 00:08:33,570 --> 00:08:36,540 So first of all I will define two variables here. 101 00:08:36,540 --> 00:08:43,550 First one Cacho would say a hundred and then Cacho. 102 00:08:43,800 --> 00:08:51,260 I think this is a little mistake on CHP CAGR lady you get your height. 103 00:08:51,420 --> 00:08:52,390 This will also. 104 00:08:52,390 --> 00:08:57,170 Hundred and now the two points that is X then why not. 105 00:08:57,210 --> 00:09:06,390 I will name them Cacho underscore start underscore X that is denoting the start point and the second 106 00:09:06,390 --> 00:09:15,480 one is get your underscore start underscored why and the ending points will be captured and the scores 107 00:09:15,480 --> 00:09:19,430 start x 2 and 4 right. 108 00:09:19,590 --> 00:09:30,270 This is going to be getcha underscore start underscore white labial and now X is very simple as I have 109 00:09:30,270 --> 00:09:43,830 told you the complete canvas would have minus the catcher with tough so good cheer underscored would 110 00:09:44,010 --> 00:09:54,530 be divided by two liberty and no get a height that is canvas height and I'm digging complete one here 111 00:09:54,560 --> 00:10:08,450 because that is not in middle that is actually bottom minus catcher height not the low navel and some 112 00:10:08,450 --> 00:10:11,090 factor minus 20 I'm taking him. 113 00:10:11,090 --> 00:10:16,490 If you want a little dough bottom then you can take this one less order up and then you can dig this 114 00:10:16,490 --> 00:10:18,860 one right after that. 115 00:10:18,950 --> 00:10:27,350 The ending point and they will be very simple just the original one that one plus it's complete with. 116 00:10:27,770 --> 00:10:30,890 So if that is there then it will go up to this point. 117 00:10:31,520 --> 00:10:41,920 So just catcher with your And again this one also very simple just the regional one plus get your height. 118 00:10:41,970 --> 00:10:43,170 David go. 119 00:10:43,530 --> 00:10:48,870 So we have defined all the default points and I hope you understand that how I have defined these. 120 00:10:48,910 --> 00:10:57,030 Now I will create the catch you taking a variable catcher and creating any drawing and canvas is very 121 00:10:57,030 --> 00:10:59,180 easy to just see or create. 122 00:10:59,550 --> 00:11:00,940 And this is actually an OK. 123 00:11:00,950 --> 00:11:01,910 So create endoscope. 124 00:11:02,000 --> 00:11:02,980 OK. 125 00:11:03,060 --> 00:11:13,610 And if you remember this required for points x note y note X1 light one and they are basically over 126 00:11:13,620 --> 00:11:14,340 these points. 127 00:11:15,300 --> 00:11:17,940 So just add them here. 128 00:11:17,970 --> 00:11:24,910 Come on see this one X not this one why not 129 00:11:27,860 --> 00:11:34,620 this one X1 and this one y one go. 130 00:11:34,770 --> 00:11:38,970 So here I hope you find all default points after that one. 131 00:11:38,990 --> 00:11:45,470 Few things like an arc if you remember with these points also require the angles like from where to 132 00:11:45,470 --> 00:11:47,860 begin and up to extend. 133 00:11:47,960 --> 00:11:49,160 So start angle. 134 00:11:49,490 --> 00:11:57,230 I have already can correct that one is going to between 230 and the extent angle is equal to one hundred 135 00:11:57,230 --> 00:11:59,290 and forty. 136 00:11:59,300 --> 00:12:08,750 So they are not exactly 180 degrees after that one feel things like style that is going to be an arc 137 00:12:10,630 --> 00:12:17,860 and the outline here in the outline we just provide the color if we want to feel the color inside then 138 00:12:17,860 --> 00:12:19,200 we will take another parameter. 139 00:12:19,420 --> 00:12:21,850 But now we require only the boundary to be color. 140 00:12:22,540 --> 00:12:29,230 So this will be catch your color variable because that is blue. 141 00:12:29,550 --> 00:12:33,820 After that one word I'm taking three here. 142 00:12:33,820 --> 00:12:36,970 So this is about defining the again kitchen. 143 00:12:36,970 --> 00:12:42,670 If you save this one and run item three wonder boy. 144 00:12:42,720 --> 00:12:48,850 There you go you will get this one exactly the same like the demo of an origin like catch it would be 145 00:12:48,850 --> 00:13:00,350 white just here not exactly 180 exactly in middle of food and at nearly bottom of height so there actually 146 00:13:01,890 --> 00:13:02,700 about getcha. 147 00:13:02,720 --> 00:13:08,990 Here it is and now in the next video I will just show you that how you can add some more interface elements 148 00:13:09,020 --> 00:13:16,710 like this golf the lives and then we will begin that how we can make this one life so that it will work. 149 00:13:17,150 --> 00:13:18,130 So thanks for watching. 150 00:13:18,140 --> 00:13:18,960 I hope you understand. 151 00:13:18,980 --> 00:13:25,550 And this one is a little typical video about the coordinates if you get any doubt and just ask me so 152 00:13:25,560 --> 00:13:26,510 soon the next video.