Book description
Build a tower defense game and earn delectable C# treats by baking cupcakes and fighting fearsome sweet-toothed pandas
About This Book
- Build a complete and exciting 2D Tower Defense game from scratch.
- Understand and learn to perform each phase of the game development pipeline
- Homework and exercises to improve your skills and take them to the next level
Who This Book Is For
If you are looking forward to get started with 2D game development, either if you are a newcomer to this world, or you came from 3D games or other game engines, this book is for you. Although there are many references to other resources throughout the book, it is assumed that you have a general understanding of C# and its syntax and structure.
What You Will Learn
- Import and set up assets for 2D game development
- Design and implement dynamic and responsive User Interfaces
- Create and handle complex animation systems
- Unlock all the potentiality of the physics engine
- Implement Artificial Intelligence algorithms to give intelligence to your NPCs
- Script gameplay and overall bring your ideas to life
In Detail
Want to get started in the world of 2D game development with Unity? This book will take your hand and guide you through this amazing journey to let you know exactly what you need to build the games you want to build, without sacrificing quality. You will build a solid understanding of Unity 5.x, by focusing with the embedded tools to develop 2D games. In learning about these, along with accurate explanations and practical examples, you will design, develop, learn how to market and publish a delectable Tower Defense game about cupcakes versus pandas.
Each chapter in this book is structured to give you a full understanding on a specific aspect of the workflow pipeline. Each of these aspects are essential for developing games in Unity. In a step-by-step approach, you will learn about each of the following phases: Game Design, Asset Importing, Scripting, User Interfaces, Animations, Physics, Artificial Intelligence, Gameplay Programming, Polishing and Improving, Marketing, Publishing and much more.
This book provides you with exercises and homework at the end of each chapter so that you can level up your skills as a Unity game developer. In addition, each of these parts are centered on a common point of discussion with other learners just like you. Therefore, by sharing your ideas with other people you will not only develop your skills but you will also build a network.
Style and approach
This is a fun step-by-step approach in the whole pipeline of 2D game development in Unity, which is explained in a conversational and easy-to-follow style. Each topic is explained sequentially, allowing you to experience both basics and advanced features of Unity. By doing this, the book is able to provide you with a solid grasp on each of the topics. In this way, by engaging with the book's content, exploring the additional references to further readings and completing the homework sections, you are able to challenge yourself and apply what you know in a variety of ways. Once you have finished reading this book, you will be well on your way to developing games from start to finish!
Table of contents
-
Getting Started with Unity 5.x 2D Game Development
- Getting Started with Unity 5.x 2D Game Development
- Credits
- About the Author
- Acknowledgment
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- 1. A Flat World in Unity
-
2. Baking Cupcake Towers
- 2D objects
- Parenting game objects
- Difference between world coordinates and local coordinates
- Ordering the different layers with Z-Buffering
- Unfolding the map
- Layers and tags
- Prefabs
- The game view
- Math background
- Scripting in Unity
- Making sprinkles
- Baking cupcakes towers
- More about coding in Unity
- Homework
- Summary
-
3. Communicating with the Player – the User Interface
- Getting ready
- Designing the user interface
- Programming the user interface
- User interface system
- Scripting user interfaces
- Designing the interface for our game
- Preparing the scene for the UI
- Creating a health bar
- Implementing the sugar meter
- More about UI scripting – handlers
- What about all the rest?
- Homework
- Summary
- 4. No Longer Alone – Sweet-Toothed Pandas Strike
- 5. The Secret Ingredient Is a Dash of Physics
-
6. Through a Sea of Sprinkles – Navigation in Artificial Intelligence
- Getting ready
- Introduction to artificial intelligence
- The importance of artificial intelligence in video games
- Navigation
- Waypoints for enemies
- Getting the waypoint coordinates
- Implementing waypoints – the first/static way
- Implementing waypoints – the second/dynamic way
- More about artificial intelligence in games
- Homework
- Summary
- 7. Trading Cupcakes and the Ultimate Battle for the Cake – Gameplay Programming
-
8. What Is beyond the Cake?
- Enhancing and improving your game
-
Training and extending your Unity skills to become a better game developer
- Making things easier for other team members
- Exposing events
- Sprinkles pooling
- Saving your data
- Debugging
- More about communication between scripts
- Documenting the code
- Protecting your game
- Building for more than one platform
- Balancing the game
- Extending the Unity editor
- Multiplayer and networking
- Practice makes perfect
- Improving the atmosphere of the game
- Teamwork
- Polishing your game
- Creating your online presence
- Getting ready to publish
- Localization
- Ethical considerations
- Summary
- Final notes and goodbye
Product information
- Title: Getting Started with Unity 5.x 2D Game Development
- Author(s):
- Release date: February 2017
- Publisher(s): Packt Publishing
- ISBN: 9781784397173
You might also like
video
Creating 2D Games with Unity
You've downloaded the Unity software, you know what the Inspector is, and now you’re ready to …
book
2D Game Development with Unity
This book teaches beginners and aspiring game developers how to develop 2D games with Unity. Thousands …
book
Mobile Game Development with Unity
Do you want to build mobile games, but lack game development experience? No problem. This practical …
video
Mobile Game Development with Unity 3D 2019
The global gaming industry is experiencing unprecedented growth, with the mobile platform now taking the lead. …