Book Image

Mastering Unity 2D game development

By : Simon Jackson
Book Image

Mastering Unity 2D game development

By: Simon Jackson

Overview of this book

Table of Contents (21 chapters)
Mastering Unity 2D Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Overview
Index

Scripting resources


Scripting in Unity is a large part of what goes into making a game. As this title has shown, there are some good ways to script and some not so good ones. In this section, you will find several resources that extend what has already been shown and offer you more places to look and learn from.

Extending the editor

The editor is by far the most underutilized feature of Unity, partly because while building your game, you focus on what goes into it, and partly because the documents surrounding the editor are quite sparse.

However, many a brave soul has ventured into this domain and extracted the secret sauce. I've shown you the basics, so continue on to more advance uses of this hidden tool by going through the following links:

  • An interesting article by Mana Break walks through the process of transforming the Unity editor into your own level-creation system, which is well worth a read. It is available at http://mana-break.blogspot.co.uk/2013/12/howto-use-unity3d-as-level-editor-for.html.

  • A good friend of mine, Jamie Hales (of Pixelballon), gave a talk in the UK on extending the editor, and he was kind enough to share it. He provided a lot of information to the audience about interesting tricks to extend the editor (even adding context menus). You can view the deck for the presentation and the associated code at the following links:

  • Catlike Coding has an awesome array of Unity articles with very interesting results. I checked out the rest of the articles, but there was one in particular that highlighted some great use of editor features for asset editing in the scene. Visit http://catlikecoding.com/unity/tutorials/editor/star/ to read more about this article.

Even more AI

AI is a tricky subject at best; the following are a few extra tips and tricks for Unity on how to build on the AI elements in this title:

Procedural generation

Procedural generation is a passion of mine; I wished there had been enough pages to do justice to it in this title. If you are looking to get into this fascinating subject, the following are some really handy and practical places to look:

Advanced coding

Coding doesn't need to be hard. The following are a few helpful sites to keep you moving:

Other scripting resources

The following sites simply have large collections of scripts that you can freely use and learn from. Some have already been mentioned in this title, but it is worth calling them out here specifically:

  • One of the best collections of scripts in one powerful library is maintained by a former XNA developer, Nick Gravelyn. UnityToolbag is chock-full of tried and tested scripts that are essential for any Unity developer. You can visit https://github.com/nickgravelyn/UnityToolbag for more scripts.

  • I've mentioned Unity wiki on several occasions in this title—always keep its location close at hand. The script also has a wealth of information on other aspects of Unity. It's community-driven, so keep that in mind. The scripts wiki is available at http://wiki.unity3d.com/index.php/Scripts.

  • Game produce a lot of valuable resources; at one a Free Achievement Framework for Unity was born. It is worth reading and looking into. Visit http://www.stevegargolinski.com/progress-a-free-achievement-framework-for-unity/ for more information.