5/18/2023 0 Comments Unity 2d screen wrap![]() ![]() Drop it somewhere near the bottom of your scene, as I have done in the image. Navigate to the new Sprites folder and find a sprite named "navbar". All of the sprites that you will need to duplicate my project are in this folder. In Unity, down in the project work area, under the project tab, with Assets selected, drag the unzipped folder into the gray area on the right. Extract the folder to somewhere you can find it. Notice how you now have a preview of your empty scene in the bottom corner of the scene window, and all of the components and property values for the camera are exposed.įirst you'll need the Sprites folder that I have included as a zipped file. For now just click on your "Main Camera" so you can see what happens over to the right in the Inspector and scene windows. I will show you each of the areas we will use in more detail as we go. you needn't worry if your window doesn't look identical. The main thing to be aware of is that you can access all of these windows from the window pull down menu, and add or subtract them as need be. This is how I have my area set up, you might do things a bit differently. Most of the tabs can be docked into an area that you find convenient. Down below we have another work area where you can dock an undock different tabs. The scene window is where we will build and place our game objects. The hierarchy window on the left side shows you all the objects that are currently in your scene. The work area is divided into four different sections, which you can organize to suit your workflow. Let's close that for now and explore the interface a little bit. Now the Unity Editor will open our new empty project and present us with a nice welcome popup. When you have made the proper selections, go ahead and hit 'create'. No sense in including extra bulk to our build files. I would advise not bothering with them unless you need them for your game. You will not need to import any of the packages for the game we will be making. ![]() It is very important to check the 2D selection at the bottom of the form where it says "Setup Defaults For". Browse to a suitable location, and give your project a name, something like "Iblejump". If it your first time opening Unity, you will be presented with a dialog box to create a new project. At least follow along with my adventure to see how easy it was. So even if you have no familiarity with programming, I believe you could do this too. I have little to no experience programming in C, and yet was scripting in C# pretty reminds me an awful lot of Arduino and Processing, which I am familiar with. I recommend not using my code as is, but rather following along and writing your own version of the same scripts. I will provide the sprite assets for each step so that you can follow along, and make the game yourself. I am new to Unity as you may or may not be, so this is just to share my love of the environment and my learning experience thus far. Everything I am showing you here, I learned from the Unity site, they have some great tutorials and video training sessions. There is a wealth of information available in learning section of the Unity site, I highly recommend giving it a look through once you have seen how simple it is to start making 2D games. I have to say that Unity is an incredible tool. ![]() I always loved when the pencil interacted with the cartoon. I went for a simplistic look in homage to those cartoons of yore done in the same style. For the purpose of sharing, I decided to use Instructables very own lovable Robot as the main character. It is wholly incomplete as far as a game goes, but served me as a fantastic opportunity to learn a little bit of C# scripting and to solidify the knowledge of Unity I have picked up since having downloaded it two weeks ago. Try it out here!! I have provided a zip of the exe of the game I will be showing you how to make. It is an infinite runner style game, like "Fly with Me' or "DoodleJump". ![]() In this Instructable, I will show you to make a really simple 2D Video game. ![]()
0 Comments
Leave a Reply. |