Here we go.
So in this video we do find two more functions that is a game over and dismissal.
So first of all game over a function you are going to require in any kind of game you're going to create.
So whenever the game is over there are some things happen there.
You generally see everything going out from there.
And just game over it.
So there's not something a new slide.
Actually we.
What we do there.
We hide all the things there that actually at this same position but hidden and how we hide them.
Just look at this one.
So first of all I have a caterpillar.
Then I have a leaf.
And if you remember we have a background color yellow.
What we will do which is the caterpillar color to yellow so that at that point did not get visible.
And also the leaf color yellow.
So I think you'll agree this with this man now that they are actually there.
We have just changed their color just like the background.
So when I have like this fine Caterpillar or exit or be white when I change the color like this background
paper then you will not able to see this.
So that something you I agree with.
After that one just bend up and hide.
Dr.
and after that one we will just write
there's something really not like game a la and this is actually at the same position at the original
text just like press base to here.
This one if I remember this one and I'm making this one also capital.
So right here in capital letters like came over something like that one or if you want any other text
then you can add that one also.
And this symbol also maybe after they've been aligned this one to center
maybe labial and provided font like the right one.
So we are in.
There we go.
And this size will be a little larger say 30 and if you want this one bold than for white ball or I'm
going for normal this time.
So this is another other type of font you can use
and this one at
now we have defined game over function.
And this is all about this one.
And you can look at this one this is very easy to define after this one we had to displace coal and
I will define this one like first I will clear AB protects them.
The previous code or if any text presented then I will assign this one the corner position so that it
will be separated from the main window and then I will update this code whenever I go to this code ability.
So first of all we had this total by name school total.
So make this one clear and make the pen up sword or pen up.
No you know I only find two coordinates x and light and focus on that one and how I'm defining this.
So basically if I consider this whole screen in four parts like that from here and cut from here then
I have a basic four coordinate Cartesian system so it to coordinate conditions system in which I had
this one first this one second.
This one third and this one fourth part of graph.
So if you remember this in mathematics this 20 something then we have X and Y both positive this one
X negative y positive in this corner both are negative in this one X is positive and why is negative.
So that something maybe understandable if this is my center like the positive x positive y negative
y negative X so I will declare first x and y by defining first the complete root.
So do you know what we know underscore word libido and taking the half of that one so that I have only
from this point to this point then I will do same with the y axis but height this time maybe will now
I have to focus on my closer from this point to this point and this point to this point it mean I have
the first quadrant and the rest quadrant I am not selected you can select any of the quadrant by changing
the assign.
So if you want this one make both of these negative so let's all always select your critical quadrant.
Now I'm in first quadrant What will I do now I will align my score underscored I tend to do very right
just like this one align center I have here I will do same here just simply score underscore total not
right and they're just past this one first of all we have a new updated score that is going to be our
string and are past current scored that is already a bill containing the current score after that when
align this hole to be ready right this what I need to tell you here now instead of center I have aligned
this one two very right so at this point like this bar here or this city so they added ready right position
just like this.
Now you can make this one go.
But what I'm going to do here I'm going to provide some padding like this folder is separated from wildly
with a gap here say this is maybe 50 pixel and this one also 50 pixel.
So this is known as padding separation of main text from the boundaries.
So I'm making a gap here minus 50 and minus 50.
And just like we have defined the boundary for a total in the total module.
So this is about defining the display school that how you can define your display score more you can
just add here deformed that is I'm going to add here again and I'll size it this time 40 and that one
bowl maybe will now we have defined the display scored also.
So this is about these two in the next we will focus on our main problem all we can say May logic of
our program.
So thanks for watching.
So in the next video.