Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Mastering Unity 2D game development

You're reading from   Mastering Unity 2D game development Mastering Unity 2D Game Development will give your game development skills a boost and help you begin creating and building an RPG with Unity 2D game framework

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781849697347
Length 474 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Jackson Jackson
Author Profile Icon Jackson
Jackson
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Mastering Unity 2D Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1. Overview FREE CHAPTER 2. Character Building 3. Getting Animated 4. The Game World 5. NPCs and Interactions 6. The Big Wild World 7. Encountering Enemies and Running Away 8. Shopping for Weapons 9. Getting Ready to Fight 10. The Battle Begins 11. Onward Wary Traveler 12. Deployment and Beyond Additional Resources 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.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images