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
Unity 5.x 2D Game Development Blueprints

You're reading from   Unity 5.x 2D Game Development Blueprints Explore the features of Unity 5 for 2D game development by building three amazing game projects

Arrow left icon
Product type Paperback
Published in Sep 2016
Publisher Packt
ISBN-13 9781784393106
Length 252 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
 Sapio Sapio
Author Profile Icon Sapio
Sapio
Abdelrahman Elsayegh Abdelrahman Elsayegh
Author Profile Icon Abdelrahman Elsayegh
Abdelrahman Elsayegh
Arrow right icon
View More author details
Toc

Chapter 9. Finishing the Tower Defense Game

Now that we have created all the single game elements for our Tower Defense game, we need to bring them all together. We will do this by creating a Game Manager that will control the entire flow of the game.

In particular, we will learn how to exchange information from the Game Manager to other elements, such as indicating to enemies the way to go, or decreasing the number of lives that the player has when the enemies have reached the end of their path. This also requires that we integrate the UI which we created in the previous chapter.

Later, we will see how to allow the player to place their own towers where they want in the map, but still having some constraints about the areas.

Then, we will learn how we can spawn enemies and how to set the game over conditions, both for winning and losing.

Finally, for those who have finished the optional section in the previous chapter about how to upgrade the tower, here they will learn how to finish what they...

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 $15.99/month. Cancel anytime
Visually different images