How to Create a Game Level in Unity
Zenva
ACCESS the FULL COURSE here: https://academy.zenva.com/product/rpg-academy/?zva_src=youtube-rpg-academy
TRANSCRIPT
Hey guys, welcome back. In this lesson, we're gonna create our first level for our simple game. We're gonna be moving, rotating, scaling, and snapping objects together. We're going to place some coins, some walls, some enemies throughout our level, and also a goal that the player has to get to once they've collected and avoided all of the enemies. So to do this, we're gonna be taking everything we've learned throughout the 101 course once again, and applying it to the laying out our level. So what I would like to do first is I wanna create the ground that our player is going to be standing on. So I'm gonna right-click in my hierarchy here and I'm gonna create a 3D object, and I wanna create a plane object. Just a flat shape there, just a flat object. And I'm gonna position at 000. Now, if I look at this, we can see that since our player is on the grid, on the ground, by default positioning the plane at zero, means it is right below where the player is standing. Now to make sure of this, if I select it and I hold down Shift and Control, it gives me this surface snap tool and I am snapped directly to the playing surface, cool. Now this ground is not big enough, obviously, so we wanna scale this up. Something maybe like five on the X and then five on the Z. And then what I wanna do is just kinda drag this up because we're gonna be moving forward, not backwards necessarily. The goal is gonna be back here and our coins are gonna be spread out in a level through here with enemies and whatnot. So, position it at about 15 on the Z, would be fine, on the z-axis there. Now in the game view, the camera sees this. You can't really even see the plane because of the angle we're looking at it.
So what I wanna do is grab this camera, I wanna drag it up on the y-axis and we start to see the plane revealed there. And what I can in fact do, is grab the rotation tool and along the x-axis, just rotate it looking down. And that's what we see, we see your player here and we see the ground. Now, we're gonna need materials obviously to separate the objects so we can see because clearly the Y, I don't know why it's not working. But we'll get to that here in a second. Now I'll call the plane ground. And now what I wanna do is I wanna create some walls. I wanna create some walls that kind of encase our level here, so we can't run out and fall off the map. So, do this, I will create a 3D object and I will create a cube object. Once again here, double click on it to find where it's at, it's way down here below our ground. So let's bring this up to .500. Now it's about where our player is. And what I wanna do is I wanna drag this off to the left using the move too ... https://www.youtube.com/watch?v=slISNpjLRB4
95069422 Bytes