1 00:00:05,520 --> 00:00:12,520 Hey everyone since this video we will begin to work on will get a little why and make that will happen. 2 00:00:12,610 --> 00:00:15,960 So few things to notice them before we move into project. 3 00:00:16,330 --> 00:00:21,280 When you notice this one with the yellow back on here we had this space to start. 4 00:00:21,280 --> 00:00:29,300 When I pressed this one I the snake and that leaf here my text that it suddenly appeared there was my 5 00:00:29,300 --> 00:00:30,730 first thing. 6 00:00:30,740 --> 00:00:37,100 Second thing is this snake third thing the leaf and it last is that one that school's about which I'm 7 00:00:37,340 --> 00:00:39,290 rotating right now. 8 00:00:39,290 --> 00:00:42,950 And all these are if I say that they are nuts. 9 00:00:42,980 --> 00:00:46,860 So basically we have four turtles in this one and this one game over. 10 00:00:46,880 --> 00:00:56,640 This is the first one James this time and appeared here so my point is any game cannot be made with 11 00:00:56,700 --> 00:01:01,410 only one turtle vehicle more than one and this one required for turtles. 12 00:01:01,410 --> 00:01:03,290 And we will build all these. 13 00:01:03,330 --> 00:01:06,030 So let me move with that one. 14 00:01:06,090 --> 00:01:10,510 First of all I will impose the turtle is deep. 15 00:01:10,630 --> 00:01:23,460 Then I will impose random as Ardi after that one I will in both time and play as D.A. and add command. 16 00:01:24,030 --> 00:01:33,330 D I don't sleep for say three seconds now disavowed the libraries that are required here and now defining 17 00:01:33,450 --> 00:01:41,540 the turtles but for them one more thing big wrong color and changing that one here in the beginning. 18 00:01:41,970 --> 00:01:46,210 That is actually yellow after that one. 19 00:01:46,720 --> 00:01:52,090 We have four turtles there first one say Caterpillar. 20 00:01:53,470 --> 00:02:03,780 Second is we have a leaf turtle onesie next to turtle for say Kolkata area. 21 00:02:04,010 --> 00:02:06,830 Now one by one we will define this in this video. 22 00:02:08,020 --> 00:02:16,540 So declaring a turtle is very easy if you remember just deed or turtle man you need to define a turtle. 23 00:02:16,750 --> 00:02:20,990 So radically all these will be same. 24 00:02:21,050 --> 00:02:24,010 We have these now. 25 00:02:24,100 --> 00:02:24,930 They are shaved. 26 00:02:24,930 --> 00:02:27,940 They're working and everything is a little different from each other. 27 00:02:27,980 --> 00:02:35,000 So we need to further modify these by properly defining them individually find their shape their size 28 00:02:35,000 --> 00:02:38,420 their tags what they have speed and all these things. 29 00:02:38,510 --> 00:02:43,620 So we will begin with the caterpillar and Caterpillar. 30 00:02:43,900 --> 00:02:45,690 First of all I will define a shape. 31 00:02:45,730 --> 00:02:48,180 And basically I'm digging squid here. 32 00:02:48,550 --> 00:02:49,690 Why squid. 33 00:02:49,690 --> 00:02:53,480 Because at this point I'm defining all these in the initial state. 34 00:02:53,590 --> 00:02:55,490 First I need the initial state. 35 00:02:55,780 --> 00:03:00,270 Then I will make them looking according to the program so squid. 36 00:03:00,270 --> 00:03:03,410 Here after that one. 37 00:03:04,020 --> 00:03:09,720 One more thing if you have noticed that one net Caterpillar net is actually a combination of three squares. 38 00:03:10,320 --> 00:03:12,500 So that seems to be a square. 39 00:03:12,540 --> 00:03:21,690 Can here after that one its initial speed and as I have told you I'm digging everything initially. 40 00:03:21,690 --> 00:03:24,010 So initial speed is. 41 00:03:24,960 --> 00:03:29,580 Because in starting nothing is moving I'm just taking these things after they're gone. 42 00:03:29,820 --> 00:03:36,800 Just get up below don't pan up. 43 00:03:37,220 --> 00:03:46,010 If you run this one right now wondered why you will get this yellow bedroom and this snake there that 44 00:03:46,030 --> 00:03:48,340 appears disappears right now. 45 00:03:48,520 --> 00:03:57,640 And after that when we have the relief that is a little hard to define so I'm going to define text first. 46 00:03:57,750 --> 00:04:01,650 So first of all this text is something best place to start. 47 00:04:01,740 --> 00:04:04,850 Until that is not pressed the game will not start. 48 00:04:04,950 --> 00:04:11,510 So I am making this unfolds initially because until that one doesn't begin to the game will not start. 49 00:04:11,640 --> 00:04:13,470 And after that phone the text there. 50 00:04:13,880 --> 00:04:15,680 So to write the text. 51 00:04:15,690 --> 00:04:16,850 Just use right. 52 00:04:16,860 --> 00:04:17,780 Come on. 53 00:04:17,910 --> 00:04:19,430 So to text outlook. 54 00:04:19,550 --> 00:04:20,360 Right. 55 00:04:20,640 --> 00:04:28,460 And watch them press space to start after that when that is actually in center. 56 00:04:28,470 --> 00:04:31,170 So I need to align that one to center. 57 00:04:31,960 --> 00:04:35,370 So C and B E are lyrical. 58 00:04:35,590 --> 00:04:37,760 So this is not Ari deceptively. 59 00:04:39,220 --> 00:04:47,140 And in last I'm adding a form to the phone did something that represented the style of text and taking 60 00:04:47,140 --> 00:04:49,020 a basic one at I. 61 00:04:49,240 --> 00:04:53,440 That is a year and this size 18. 62 00:04:53,860 --> 00:04:55,620 So this is actually optional. 63 00:04:55,840 --> 00:05:02,890 You can go for the original one that is simple text like the one I'm writing in programming these after 64 00:05:02,890 --> 00:05:10,050 that when all the text must be bold otherwise the you do not able to notice that one is sitting. 65 00:05:10,170 --> 00:05:17,220 So this is about this thing when I run that one right now I go to this one and below this one this press 66 00:05:17,220 --> 00:05:18,250 space to stop. 67 00:05:19,020 --> 00:05:28,300 And now this call from the school title and that will be going to East core underscored turtle Hi Turtle 68 00:05:28,330 --> 00:05:30,030 because initially there is nothing. 69 00:05:30,520 --> 00:05:32,320 And it's speed of changing 70 00:05:35,150 --> 00:05:43,220 that is turtle underscores the speed of just go to Lord speed that is initially zero because discord 71 00:05:43,220 --> 00:05:44,360 remains constant right. 72 00:05:44,370 --> 00:05:46,400 No it isn't changing. 73 00:05:46,400 --> 00:05:51,110 So when that one we still have these two things One more thing. 74 00:05:52,640 --> 00:06:00,670 Now defining the leaf so how we can define the leaf or any other figure like that one and I will show 75 00:06:00,710 --> 00:06:05,630 here how you can define that one and you can define even Apolo something like that really. 76 00:06:05,720 --> 00:06:08,300 Also when I hit with space here. 77 00:06:08,660 --> 00:06:11,730 So if you notice this leaf then it has. 78 00:06:11,750 --> 00:06:19,670 If I not focus this point zero zero then this one opposed upwards of this point is having some land 79 00:06:19,670 --> 00:06:21,800 here and the same coordinates like this one. 80 00:06:21,950 --> 00:06:30,170 If I consider this one zero zero then this one is my set 2020 and here I have 1 2 corners on the side 81 00:06:30,230 --> 00:06:31,940 and 2 corners on this site. 82 00:06:32,180 --> 00:06:39,210 So basically I have 6 corners so what I need to do here is I need to define these six corners and then 83 00:06:39,210 --> 00:06:41,420 my live is formed with a green color. 84 00:06:42,300 --> 00:06:46,790 So you can also make this one whatever the figures you need to according to the code in your you. 85 00:06:47,550 --> 00:06:52,500 So here are just these two coordinates and then these folks that are opposed to each other. 86 00:06:52,500 --> 00:07:00,570 Like if this one is 1 2 this is going to be 2 1 because if you consider this thing as a graph here this 87 00:07:00,570 --> 00:07:01,640 is my x axis. 88 00:07:01,650 --> 00:07:06,240 This is my y axis labial. 89 00:07:06,300 --> 00:07:08,550 Now let me show you that one how are we going to littler. 90 00:07:08,740 --> 00:07:15,120 So first I'm taking a very able leaf underscores shape that is going to contain some of the coordinates. 91 00:07:16,210 --> 00:07:28,490 So there I have six no so I am taking him six coordinates three four five and eight equals six. 92 00:07:28,600 --> 00:07:34,750 First of all I I'm taking this as a starting point zero zero zero zero and the opposite to that one 93 00:07:34,750 --> 00:07:36,970 is going to be like if I have that. 94 00:07:37,180 --> 00:07:40,680 So this is also a leaf like structure this year. 95 00:07:40,690 --> 00:07:48,280 This hexagon then if this point is my 0 0 then this point is going to be by 2020 and in-between this 96 00:07:48,310 --> 00:07:49,920 and this we have either. 97 00:07:50,320 --> 00:07:54,190 If I go decide to decide so I have between two points. 98 00:07:54,190 --> 00:07:59,140 So I leave a gap of two and defining that one 2020. 99 00:07:59,650 --> 00:08:01,390 And then if we talk about these. 100 00:08:01,480 --> 00:08:10,730 So if this point is is something very starting of this axis but a very large gap at this point. 101 00:08:10,810 --> 00:08:18,970 So if I notice this one with from this point to this axis then y axis is a little smaller but the x 102 00:08:18,970 --> 00:08:20,450 axis is larger. 103 00:08:20,530 --> 00:08:25,430 So taking this point as 14 might do. 104 00:08:25,810 --> 00:08:30,540 So my this point is going to be to go my 40. 105 00:08:30,640 --> 00:08:34,980 So this is going to be this one. 106 00:08:35,020 --> 00:08:41,590 So this is from the beginning then that to come off would be. 107 00:08:41,770 --> 00:08:43,500 And then I had this one. 108 00:08:43,960 --> 00:08:46,060 So if first I encountered this. 109 00:08:46,150 --> 00:08:48,140 Then I got this. 110 00:08:48,280 --> 00:08:59,410 Now this one if this is going to be say 18 6 because I need to keep them in between 0 2 quality then 111 00:08:59,470 --> 00:09:05,690 after I encountered this one the opposite of this is Declan just after they wanted wanted this point. 112 00:09:06,160 --> 00:09:13,530 So this is going to be 6 18 so I hope you'll go that wondered how I have described these. 113 00:09:13,790 --> 00:09:15,990 Now these are just the coordinates. 114 00:09:16,010 --> 00:09:22,190 Now I registered these so whenever you're creating a new figure you need to register this shape according 115 00:09:22,190 --> 00:09:24,240 to your coordinates. 116 00:09:24,320 --> 00:09:28,950 So this one actually is doing something like Square Square is already resistor. 117 00:09:29,090 --> 00:09:33,270 So here I am registering a new shape that is known as a leaf. 118 00:09:33,320 --> 00:09:37,300 So here this leaf is registered with a name leaf. 119 00:09:37,460 --> 00:09:44,600 And what the shape is actually up we can see closed loop of these coordinates. 120 00:09:44,710 --> 00:09:50,650 Leaf shape so here what I have done I have registered a shape with name leave. 121 00:09:50,820 --> 00:09:57,310 That actually consists of these six corners joined one by one to each of them so that's how you can 122 00:09:57,310 --> 00:10:04,410 define any figure just like this Gwendolyn and after that one I will give this one. 123 00:10:05,010 --> 00:10:13,980 So do not be here leaf this leaf a shape of my new defined structure that is leaf. 124 00:10:14,280 --> 00:10:16,220 So I have defined a new figure there. 125 00:10:16,620 --> 00:10:22,560 And given that shape to my leaf you can also name this one as a different variable but I'm just taking 126 00:10:22,560 --> 00:10:22,920 leave. 127 00:10:23,940 --> 00:10:33,720 So if you run this one right now you will get a leaf there as you can see here this one Black Leaf and 128 00:10:33,720 --> 00:10:34,920 I'll change this one too. 129 00:10:34,930 --> 00:10:41,290 GREEN So e leave the color and green on that one again. 130 00:10:43,210 --> 00:10:44,260 Maybe over the green leaf. 131 00:10:44,990 --> 00:10:47,580 So that's how you can create any kind of figure here. 132 00:10:47,680 --> 00:10:51,630 You have learned basically these in the total graphics and a little more here. 133 00:10:52,760 --> 00:11:03,090 After that one leaf don't pan up and leaf dope speed and not pass anything there. 134 00:11:03,860 --> 00:11:08,150 Because we do not require anything initially with the speed of leaf. 135 00:11:08,480 --> 00:11:09,730 Go after that one. 136 00:11:10,010 --> 00:11:13,400 Hey I have done defining all these turtles. 137 00:11:13,430 --> 00:11:14,480 Now what will I do. 138 00:11:14,480 --> 00:11:20,210 I will just hide this initially because I need to do some work there. 139 00:11:20,450 --> 00:11:23,050 So initially hide all these turtles. 140 00:11:23,150 --> 00:11:30,420 So you have empty screen so hide this one hide Leif leave no tie. 141 00:11:30,450 --> 00:11:32,580 Total aerial. 142 00:11:32,800 --> 00:11:44,630 This one also so text underscores turtle don't hide turtle you just this one that I have already hidden. 143 00:11:45,400 --> 00:11:46,350 Now save this one. 144 00:11:46,390 --> 00:11:47,260 We are done with that. 145 00:11:48,470 --> 00:11:54,130 Now in the next videos we will work on some more things there so that we will reach to our output. 146 00:11:54,520 --> 00:11:55,300 So thanks for watching. 147 00:11:55,450 --> 00:11:57,670 I hope you understand all these things. 148 00:11:57,670 --> 00:11:59,170 And if I get any problem there. 149 00:11:59,380 --> 00:12:02,260 Just ask me and see in the next video.