 Okay, welcome to space arena the ultimate Python turtle graphics game tutorial part one getting started So let's go ahead and set up our window and just kind of get a place to actually create our game So as I mentioned in the introduction, we're going to be using the turtle module To for our graphics and just a little quick note. I'm using an editor called genie It is a free open source editor and works on Linux Mac and Windows I definitely recommend downloading it. You'll see over here as I'm typing It'll be adding some information. It'll make it easier to find some things later in our game So what I'm gonna do is I'm gonna go ahead and set my screen width And I'm gonna set it to 800 and I'm also gonna go ahead and set my screen height to 600 Now in this particular case what I'm doing is this is the playable area of the screen So watch what I do here. I'm gonna set up a window object And it equals turtle dot screen if you see my other tutorials, this should be very very familiar This will actually give us the window in which we can draw stuff onto And then I'm gonna go ahead and set that window and I'm gonna put this screen width and the screen height and So it's gonna be 800 by 600. I'm gonna give it a title And I'm just gonna call this space arena great title by at Tokyo at tech Tokyo and Finally, I'm gonna give the window a background color and it's a space game. So the black the background is gonna be black and Just kind of natural for that Okay, and then what I'm gonna do down at the bottom just temporarily I'm gonna type win dot main loop And I'm gonna test it at this point. This is something I definitely recommend doing is just testing often So if there is a problem, you know, where it's at. Okay, so we've got our screen looks about 800 by 600 I've got my title here. We are good to go. Okay. Now For the turtle, I'm gonna be doing a rendering method I'm gonna be using the the turtle making a turtle object to render all of the images and graphics on the on the screen So watch what I do here. I'm just gonna create it something on a call to pen Don't have to call it a pen, but that makes sense to me and it is actually a turtle dot turtle object and I'm gonna set its speed to zero. This is not the speed that it moves This is the speed of animation zero is the fastest animation I'm gonna give it a shape and just for default shape. I'm gonna make it a square and I'm gonna give it a default color I'm gonna make it white and I say pen dot pen up because I don't want it to draw lines when it moves And what I usually would do at this point is I would hide turtle Pen to hide turtle. So basically we won't be able to see it on the screen But let's let's go ahead and comment that out for a second. So I'm gonna run it show you what I mean Okay, so we got an error because I took out wind up main loop So if you don't have wind up main loop the program will just exit Okay, so there is our pen now. We actually don't want to see the pen. There's a very nice feature That we can use called stamp, but we don't need to see this particular turtle We're just gonna be using it to draw other things and then basically at this point The game is ready to go. It's ready for us to actually start Adding objects and to start adding classes. So I'm gonna go ahead and end that there This is basically what we need to get the game started. So as long as you have this working You are good to go and you're ready for part two. See you there