Welcome back.
In this video, we will add school system to our game ball game clone.
So let's begin.
Firstly, we will add two variables.
Score one for the player one and score two for the player two.
And these two variables will be added before the game on variable as a follow.
So score one equals zero and score to equal zero.
So we assign the two variables to the value of zero.
Therefore, the score of the two players are equal zero at the start of the game.
The second step is to increase the score one after the ball hit the wall behind the player two and vice
versa for the score too.
So in the first half statement of the ball algorithm, we add score one plus equals one, and in the
second statement of the ball algorithm, we add score two plus equals one.
Finally, we want to add funds to our game and we can do that by using the font method of the big game
at the following.
So Phonte equal by game dot font dot font with capital F between two parentheses, none for the font
file and one hundred for the font size.
Then render our font as the following text equal font dot render between two parentheses S.G. or Thrane
between two parentheses is code one and one and white and the close parentheses.
You notice that we convert the score one from Intesa time to strike that time to avoid getting an error.
When we run the game, then we use Belet Method or Dot Bennett method to make the score appear on our
screen and make the same two lines of code for the score too.
But we change the position for the score to to be appear in another position rather than the score one
of the player one.
Then we build our Python program to run the gameplan and we have an error due to a typo and score one
spelling.
And after we fixing that typo, we run our game again by building our Python project and it will run
correctly without any errors and our game run correctly without any error.
At this moment.
We reached the end of this lecture.
I hope you enjoyed this review and get all of that.
Thanks for watching and thanks for being here.
See you.
Next lecture.