00:01
Hello student, here i have written the program in java and it's basically related to game and its name of the game is pong game.
00:09
And here i have taken the window and i have taken here library that is set to draw.
00:21
So with a standard draw, not set to a standard draw.
00:24
So this is my canvas size where the player will play.
00:28
So its dimensions are set.
00:30
So with the help of this, these are set.
00:34
So 800, 600 in x scale and y scale.
00:38
And buffering at the starting, i have taken this from the standard draw and i have taken the player here.
00:45
Here the player score at the starting point is 0, player 1, player 2 score.
00:51
And winning score 3.
00:52
Why? because the player, if one of them has secured 3 scores, 3 wins 3 games, then we will declare that is the winner in our game.
01:06
So here i have to draw the game element.
01:10
And boolean game over for us at the starting point.
01:15
Now i use the while loop.
01:16
While isn't game over.
01:18
I'm asking game over.
01:19
If not over, then i will enter into the while loop.
01:24
And when the game will over, when the winner will be declared.
01:29
And how the winner will be declared? when the winner wins 3 games.
01:35
Now clear the screen, standard draw .clear, color .black, draw the patterns.
01:41
Now i have set the pen color, that's white...