Getting Started with Unity 5.x 2D Game Development

Build a tower defense game and earn delectable C# treats by baking cupcakes and fighting fearsome sweet-toothed pandas

Getting Started with Unity 5.x 2D Game Development

This ebook is included in a Mapt subscription
Francesco Sapio

1 customer reviews
Build a tower defense game and earn delectable C# treats by baking cupcakes and fighting fearsome sweet-toothed pandas
$10.00
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook
Access every Packt eBook & Video for just $100
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Find Out More
 
Preview in Mapt

Book Details

ISBN 139781784397173
Paperback478 pages

Book Description

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.

Table of Contents

Chapter 1: A Flat World in Unity
Learning game development
Tower defense games
Designing our game
Getting ready
Remembering the past to build the future
Organizing the project
A 2D world
Sprites
Scenes as levels
There is more about the Unity interface
Homework
Summary
Chapter 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
Chapter 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
Chapter 4: No Longer Alone – Sweet-Toothed Pandas Strike
Getting ready
Animations
More about Animations
Get animated!!
Homework
Summary
Chapter 5: The Secret Ingredient Is a Dash of Physics
Getting ready
Physics in video games
Physics – basics
The Unity Physics engine
Physics components
Rigidbodies
Colliders
Joints
Effectors
Physics Material 2D
Dealing with physics in Unity
Other things about Physics
Physics for our game
Homework
Summary
Chapter 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
Chapter 7: Trading Cupcakes and the Ultimate Battle for the Cake – Gameplay Programming
Getting ready
What does gameplay programming mean?
Planning what is left to implement for our game
Trading cupcake towers
Placing the towers
Selecting the towers
The Game Manager
Panda invasion – spawning Pandas
The main menu
Techniques we learnt in this chapter
Homework
Summary
Chapter 8: What Is beyond the Cake?
Enhancing and improving your game
Training and extending your Unity skills to become a better game developer
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

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

Authors

Table of Contents

Chapter 1: A Flat World in Unity
Learning game development
Tower defense games
Designing our game
Getting ready
Remembering the past to build the future
Organizing the project
A 2D world
Sprites
Scenes as levels
There is more about the Unity interface
Homework
Summary
Chapter 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
Chapter 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
Chapter 4: No Longer Alone – Sweet-Toothed Pandas Strike
Getting ready
Animations
More about Animations
Get animated!!
Homework
Summary
Chapter 5: The Secret Ingredient Is a Dash of Physics
Getting ready
Physics in video games
Physics – basics
The Unity Physics engine
Physics components
Rigidbodies
Colliders
Joints
Effectors
Physics Material 2D
Dealing with physics in Unity
Other things about Physics
Physics for our game
Homework
Summary
Chapter 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
Chapter 7: Trading Cupcakes and the Ultimate Battle for the Cake – Gameplay Programming
Getting ready
What does gameplay programming mean?
Planning what is left to implement for our game
Trading cupcake towers
Placing the towers
Selecting the towers
The Game Manager
Panda invasion – spawning Pandas
The main menu
Techniques we learnt in this chapter
Homework
Summary
Chapter 8: What Is beyond the Cake?
Enhancing and improving your game
Training and extending your Unity skills to become a better game developer
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

Book Details

ISBN 139781784397173
Paperback478 pages
Read More
From 1 reviews

Read More Reviews