Unity3D series tutorials-use free tools to develop 2D games in Unity3D Section 1

Source: Internet
Author: User

Disclaimer: the translation categories of this blog post are personal translations, All rights reserved. Source: http://blog.csdn.net/ml3947,personal blog: http://www.wjfxgame.com.


Translator's note: This is a series of tutorials. You can use Unity3D and some free plug-ins to develop 2D games. Translate for your spare time for your reference only. Because the original tutorials contain some "nonsense" (some common problems of blog writers, sometimes I like to write about the current situation, such as bullshit, and I am no exception --!), Therefore, I will make some streamlining and translate more important parts. In addition, I will correct some outdated ones and will not repeat them here.


In the first part, I will introduce some of the tools we will use and demonstrate how to configure them in Unity. In the following chapter, we will start making this game. Although we only use the free version of these tools, we can also unlock some additional features by paying for the paid version of these tools.


Tool Introduction
Unity3D: You may already know that Unity3D is a great tool for developing 3D games. However, with some plug-ins and scripts, Unity3D can still make 2D games well. We will use the free version of Unity3D. You can use it to publish your game on PCs, Mac, and even Android/iPhone platforms for free.
Orthello 2D Framework: Unity3D has several different genie plug-ins available, among which Sprite Manager 2 is the most popular and widely used one. I used it in early-rising 2D games. But recently, as a friend mentioned that he was very satisfied with Orthello, I also started to try. In some ways, it cannot be as simple and convenient as using other plug-ins-for example, we have to make our own Sprite Atlases. But as a free plug-in, it provides more great features to perfectly create our 2D games.
ITween:ITween is an animation system used in all my projects. It is a perfect solution for animations from enemies to UIS. It is also the first script to be installed when I start a new project.
A * Pathfinding Project:A * Pathfinding is also the most widely used path Finding System in Unity3D. It is fast, powerful, and easy to use. And it has a free version that can be used perfectly in our project.
TexturePacker:TexturePacker is a separate application software. It makes it easier for us to create Sprite Sheets through our Texture. Although you can use PhotoShop, acorn, or Gimp to create your own Paster set, Orthello 2D recently began to support the Paster set generated by TexturePacker, this makes our work easier. Start a new project
Install the latest version of Unity, and create a New Project through File-> New Project. Click Set... and then browse the path where you will save the hard drive of your Unity3D project. Enter the project name and click Save. You can select any package for import in the new project at will. However, I will not import any packages here. Click Create Project.
In your project view, create a folder named "Scenes" and Save the current scenario through File-> Save Scene. Rename it "level1" and click Save.
Install Orthello 2D
Open Asset Store in Window> Asset Store, search for orthello2D, and then download the latest version. Import the data to the project.
Orthello 2D initialization settings
On Orthello's official website, there is a lot of detailed information to tell you how to set and work with plug-ins. Here are some simple steps. To enable Orthello to work in Scene, you must set something. Remember, you will repeat the following steps in every Scene you created.
1. In the view of Unity Project, click Orthello-> Objects and drag OT prefab to the view of Scene.
OT prefab is equivalent to the animation and sprite container we will add later. After adding OT prefab to the scenario, we will automatically make some changes to our Main Camera to make it work well for 2D games. The most important thing is that it changes the projection method to Orthographic and then sets the Size to 332. (332 is an odd size, but it is used by Orthello ). Note: The current version should be 384.
Install iTween
Open Asset Store, search for iTween, and import it to the project. (Note: the original article is too long-winded and has to be included in one sentence)
Install A * Pathfinding
Click this URL: http://arongranberg.com/astar/ to download the free version of A * Pathfinding and import it to the project.

A * Pathfinding initialization settings
First, make sure you have read the "getting started" section in the * Pathfinding document. Here we will provide A complete description of how to set. However, I will still tell you the simple steps here.
1. Create an empty Object
2. confirm that the position of x, y, and z of this object is 0 and rename it as *.
3. Use Component-> Pathfinding-> Pathfinder to add the Astar script to the object.
4. Select the object of A * in Hierarchy. You should be able to see the setting of the Astar Path script in the Inspector view. At the top of the script, you can see a string "Do you want to enable Javascript support? ", Since all the scripts in our tutorial will be written in C #, click No here.
Summary
If you follow the steps above. Your project should look like.

What makes people feel cool is that you can use these steps to start developing all types of 2D games.
In the following section, we will officially make 2D games. Introduce some features of Orthello.
Reprinted please indicate the source: http://blog.csdn.net/ml3947

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.