1
00:00:00,450 --> 00:00:02,430
The first challenge is pretty simple.

2
00:00:02,460 --> 00:00:04,740
We're just going to create the starting screen.

3
00:00:05,160 --> 00:00:10,160
It's going to be a screen that has a height of 600 pixels and a width of 800

4
00:00:10,950 --> 00:00:14,880
pixels. It should be black in terms of the background color,

5
00:00:15,300 --> 00:00:18,510
and it should stay on the screen until we click on it.

6
00:00:18,930 --> 00:00:20,790
So using what you've learned so far,

7
00:00:20,910 --> 00:00:24,000
go ahead and set up the starting code for our project.

8
00:00:27,140 --> 00:00:31,520
All right. So I've created a brand new project which I've called pong-game,

9
00:00:31,940 --> 00:00:34,580
and I've created a main.py. Now,

10
00:00:34,610 --> 00:00:39,610
the first thing I'm going to do is I'm going to import a screen from the turtle

11
00:00:39,830 --> 00:00:40,663
module.

12
00:00:42,860 --> 00:00:46,790
And then I'm going to create a screen object from the Screen class,

13
00:00:47,180 --> 00:00:50,780
and then I'm going to set the background color to black.

14
00:00:51,560 --> 00:00:56,560
And then, of course, we'll need to set up the screen so that it has a width of

15
00:00:57,650 --> 00:01:02,180
800 and a height of 600.

16
00:01:04,099 --> 00:01:07,090
So now if I run this code as it is,

17
00:01:11,270 --> 00:01:13,940
you'll see that it flashes up and it disappears.

18
00:01:13,970 --> 00:01:17,030
So of course we need that exitonclick method.

19
00:01:17,030 --> 00:01:21,140
As well as a final finishing touch, this is completely optional

20
00:01:21,380 --> 00:01:23,630
but it helps to identify the program,

21
00:01:23,750 --> 00:01:27,800
we can change the screens title to say Pong.

22
00:01:28,730 --> 00:01:33,320
And now when I run the code, you can see that this window now says pong.

23
00:01:34,880 --> 00:01:38,150
So we now have our 800 by 600 screen,

24
00:01:38,510 --> 00:01:43,040
and we're now ready to head to the next step where we create our paddles.

