1 00:00:05,800 --> 00:00:06,470 Here. 2 00:00:07,220 --> 00:00:09,870 In the last video we are done with these interface items. 3 00:00:09,910 --> 00:00:12,220 That is I can catch you in this video. 4 00:00:12,220 --> 00:00:18,550 We will continue with two more interface items that is this discord and the lights there actually in 5 00:00:18,550 --> 00:00:24,580 this canvas so we need to separately add these so that we can be different. 6 00:00:24,580 --> 00:00:30,650 So first of all I'm going with these gold and taking this gold initially equal to zero. 7 00:00:30,760 --> 00:00:36,820 After that one I will take a ready able to create the scope that is scored underscore text and I will 8 00:00:36,820 --> 00:00:45,140 simply create that one just see or create underscore text because discord is actually a text. 9 00:00:45,350 --> 00:00:53,110 And now in that one I will provide the positions and when you provide the positions in total they begin 10 00:00:53,110 --> 00:00:55,140 from the center point. 11 00:00:55,690 --> 00:00:57,670 But here they begin from this point. 12 00:00:57,670 --> 00:01:01,460 So I need that score something like at this point. 13 00:01:01,560 --> 00:01:06,670 Capture if this is my window so I am taking this 110 from this and 10 from this. 14 00:01:07,450 --> 00:01:09,020 So that is going to be 10. 15 00:01:09,040 --> 00:01:17,560 Then after that one I will provide an anchor here so that the program will not get confused about anything 16 00:01:18,220 --> 00:01:21,950 and the anchor I'm providing here is if this is the north. 17 00:01:22,000 --> 00:01:26,620 This is West all this is going to be Northwest. 18 00:01:26,620 --> 00:01:28,460 There we go. 19 00:01:28,630 --> 00:01:38,620 After that one and providing a format as usual right size 18 and the original one we have the normal. 20 00:01:38,630 --> 00:01:44,860 But here I'm going to take bold because that's something more noticeable there. 21 00:01:45,640 --> 00:01:55,210 After that one color dark blue by providing failed and the last thing disco represented there. 22 00:01:55,690 --> 00:02:00,720 So the initial score is zero and it will increase whenever program bugs. 23 00:02:00,910 --> 00:02:03,620 So I will have text here. 24 00:02:03,910 --> 00:02:13,120 And this is going to be first a string that is called these dots and then plus our so-called red label 25 00:02:13,240 --> 00:02:14,290 that is initially zero. 26 00:02:15,040 --> 00:02:18,070 So they will go save this one. 27 00:02:18,110 --> 00:02:22,670 Now if you run this one we got some error. 28 00:02:23,600 --> 00:02:26,530 Oh actually that is an end. 29 00:02:26,620 --> 00:02:29,320 We need to create this one into a string also. 30 00:02:29,980 --> 00:02:34,760 So string this one SDR and I'll run it here. 31 00:02:34,760 --> 00:02:36,420 There we go. 32 00:02:36,460 --> 00:02:38,880 So here we have score and zero. 33 00:02:38,890 --> 00:02:43,390 Now if you are thinking that I have made this one a string because that is actually scored up integer 34 00:02:43,390 --> 00:02:52,450 value because I need concatenation here and I therefore deploy disk space also here because there is 35 00:02:52,450 --> 00:02:53,960 no gap in them. 36 00:02:54,130 --> 00:02:56,010 And now check this one again. 37 00:02:57,840 --> 00:02:59,200 They deal with a perfect score. 38 00:03:00,850 --> 00:03:03,140 So this is about defining this code. 39 00:03:03,760 --> 00:03:08,210 And after this one I have to define the life sort of meaning. 40 00:03:08,260 --> 00:03:15,750 So for that one I'm taking over evil lives underscore remaining and initially use it have three lines 41 00:03:16,630 --> 00:03:21,260 and then copy first and the lives here. 42 00:03:22,030 --> 00:03:23,420 So lives and discord. 43 00:03:23,520 --> 00:03:26,750 Text not copy the remaining. 44 00:03:27,020 --> 00:03:27,490 Come on. 45 00:03:27,490 --> 00:03:29,060 See and come on. 46 00:03:29,220 --> 00:03:29,440 Why. 47 00:03:29,440 --> 00:03:31,480 Because life is also a text. 48 00:03:31,660 --> 00:03:33,960 So we need to create a text there. 49 00:03:34,000 --> 00:03:39,540 And the positions we need to provide here is devices will all again the same. 50 00:03:39,540 --> 00:03:48,570 Then because in our main program they have the same distance from the top. 51 00:03:49,300 --> 00:03:53,870 But this one is actually 10 and this is total minus 10. 52 00:03:53,950 --> 00:04:03,120 If we consider from this point like if this is 10 and this is it then this point from this wall is 10 53 00:04:03,120 --> 00:04:07,320 centimeters or so whatever the dimensions we have like pixel solving. 54 00:04:08,010 --> 00:04:11,750 So that is going to be the view of the total canvas. 55 00:04:11,790 --> 00:04:15,930 Minus 10 to canvas would minus 10. 56 00:04:16,500 --> 00:04:23,750 I hope you get this one and the anchor there is if this is not this is it then that is noticed. 57 00:04:24,450 --> 00:04:25,370 We go. 58 00:04:26,100 --> 00:04:35,250 And again the same font same color and all the text here will be something like lives and the variable 59 00:04:35,260 --> 00:04:48,520 here lives meaning that will save this one and try to check the go so perfect lies 3 and buffer distance 60 00:04:48,520 --> 00:04:51,010 from both these and also discord. 61 00:04:51,100 --> 00:04:56,680 Now we are done with all the interface items from the very next video will vote that how of a program 62 00:04:56,680 --> 00:04:57,830 can work. 63 00:04:57,880 --> 00:04:58,990 So thanks for watching. 64 00:04:58,990 --> 00:05:00,040 I was in the next video.