![]() ![]() In our scene, you’ll notice there’s a gizmo that shows the size of our camera and therefore the screen resolution we chose.Įverything inside that rectangle will be displayed on the device’s screen. For now, let’s get started filling our scene. We’re mostly going to be working with the rocks, planes, and backgrounds but there’s lots of freedom in this asset pack to make this project your own. We’ve got backgrounds, obstacles, and even some UI. If you look through the images file, you’ll notice there’s quite a lot to work with here. Download, unzip, and import the “images” folder into your project folder. You can download the assets we are going to be using for this tutorial here. We’ve got the right screen resolution set up and now we can begin building our game. Once this is set, we don’t need to change it. It doesn’t matter which portrait resolution you choose just so long as it is a portrait resolution. Go to the game tab and set the game view to a portrait resolution. In the case of our project, we will be using portrait orientation. Mobile games can be in two different orientations, landscape or portrait. Because we are developing for mobile, we have less freedom when it comes to determining the resolution of our game. Now we’re ready to start developing our game! Screen Resolutionsīefore we start putting game objects in our scene, we need to make sure we’re working in the right screen resolution. Once you’ve made your selection, hit “switch platform” and let Unity reconfigure your project. That being said, I’m going to choose Android. You can choose either platform just know that developing for iOS requires a computer running Mac OSX if you want to test on an iOS device. We can either develop for Android or iOS. Now notice that we’re given a few options when it comes to a mobile platform. Go to File -> Build Settings to change our target platform. Right now, our project is set up to be a desktop game. If the top right of your project says something like this: The first is to change the build platform. You’re going to want to create a brand new 2D Unity project.īefore we do anything here, let’s talk about the setup we need to do before we start developing for mobile devices. This K12 platform is perfect for not only jumping into Unity with students, but provides features like classroom management and pre-made course plans for easy use in schools.ĪVAILABLE FOR A LIMITED TIME ONLY Setting Up For Mobile Project Settings If you’ve never used Unity before, we recommend first starting with resources focused on that (as it’s super easy to swing back around to mobile games later).Įducators can also consider diving into Zenva Schools as well. If you’d like to view the full finished source code, you can also download that link as well.Īlso, before you start, do keep in mind this tutorial is intended for users who already know the basics of Unity. You can download the assets used for this project here. ![]()
0 Comments
Leave a Reply. |