 Good morning class, welcome back to Game Dev Academy. Make sure you sign the register by leaving a comment down below, just like these fine people did in the last class. So this is the next class in the Game Dev series, so we're back in Unreal Engine. Last time we started setting the project up for our breakout clone, and there's a little bit more setup in this step where we're going to be setting up the inputs so we can interact with the game and also getting the screen size correct so it's going to work for a phone. So let's get stuck in. The first thing we'll do in this step then is get the inputs set up for our project which will allow us to interact with the game using the keyboard. So in order to do that we need to go to edit and we're going to go into the project settings first of all, which gives us this beautiful window here and the place that we need to go to is just here which is input. And the section we're concerned with at the moment is the action mappings and the axis mappings. So we'll start with the actions and what we're going to need is some way to get the ball to go into play in the first place. So we're going to add an action mapping for this and we'll just drop that down. And the first thing that will ask us to do is to give it a name. So I'm just going to call it fire since we'll be firing the ball and then once I press enter to save that name it asks me what key or keys I want to attach to that action. So in the first place we're going to be going around the WASD keys so I'm going to add the W key for this which is just here. But then I want to add a couple more so that we can play the game in different ways. So I'm going to click the plus icon here and I also want it so we can play on the arrow keys. So I'm going to add the up arrow key to that. So if we just go to search and if we type up there it is. So we've got the up option there and just because it's a nice big key I think I'll add the space bar as well. So we'll go plus one more time and if I start typing space there's space bar. So now all three of these buttons will trigger the fire action. We also need to be able to get the paddle to move left and right and in order to do that we're going to add an axis mapping. So we'll click on plus again and we'll drop this down and I'm going to call this one horizontal movement. Yep I spelled it right well done. So for this one we're going to have it on the A and D keys to go left and right. So we're going to add the A key which will be in here somewhere. There it is and we're also going to add the D key which is just there and then we're going to add the left arrow and the right arrow as well. There it is. So that's how I'm going to control the paddle going side to side. At the moment though we need to change these so D and right are okay because they're going to go to the the right which is correct but we we need A and left to do the opposite of that. So instead of having one on the scale we're going to have minus one on both of those values. So that's our action mapping setup. The next thing we need to do is make sure that we are developing for kind of a phone screen sort of size. So we can close the project settings for now and in order to get the phone screen sort of size we're going to go into the edit preferences and I'm going to go to play this play section here and here you can see you've got common window sizes and within that you've got phones and lots of different phones you can choose so most of these are quite high end but because I want it to fit on screen quite easily I'm just going to aim for the Samsung Galaxy S4 which will be something like that and to test that out if we just go to play here and we go to a new editor window it will open this up and that gives us an idea of how our screen is going to look so that's kind of your standard Galaxy S4 screen but I actually want my screen size slightly different to that so instead of 360 by 640 I just prefer 480 by 640 you can have either or it might just change how you set up your level. So I'm happy with that you can if you want change between landscape and portrait using that button as well which is pretty useful but we're going to be doing it in portrait mode and the last thing I want to do for this step we can just close the editor preferences is to create a game mode which will not be using just yet but it'll be ready for when we are so I'm going to go into my content folder back up to the top I'm going to create a new folder to keep it all organized and I'm going to call this my blueprints folder okay like that and within here I'm going to create a new blueprint so I'm going to go right click a new blueprint class and I'm going to choose a game mode and the first thing I'll ask you to do is to give that game mode a name so I'm going to call it bo that's for breakout not body odor bo game mode and you should notice that I'm not putting any spaces in any of my names I'm just capitalizing the first word as is the convention so that's set up and ready to go and what I want to do now is make sure that this is the game mode that's being used when the game starts and to get that to happen I'm just going to go save all you've got a little asterisk here so I'm just going to do save all to make sure that that's saved go into my world settings and you can see here there's this game mode override section and if I choose my new game mode from here bo game mode that will be set up and ready to go so that brings us to the end of what I wanted to cover in this step in the next one what we'll be doing is blocking out our level so we're going to put some of the blocks in we're going to put the ball in place in a paddling place get an idea of scale get the bounds in so that we've got an idea going forward make sure it all fits within the phone screen as well so hopefully I'll see you in the next step for that I believe that quality education should be available to everybody and for that reason all of the classes at game dev academy are completely free and we're supported by our very generous school governors over at patreon if you'd like to become a game dev academy governor and support our work as well as helping us to steer the tunnel in the right direction then use the link in the description to be taken to the patreon page