O'Reilly logo

Unity 2D Game Development by Dave Calabrese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Crown the king

To develop the boss battle, we are going to use everything you have learned throughout this book to assemble a single combat event in a 2D world. If you have not cracked your knuckles yet, now would be the time to do that. Always crack your knuckles before doing something awesome—it lets people know to stand back and observe the awesome event as it goes down. This is a great time to be excited. You are near the end of your production. This is the pinnacle of the game, where you have led your player to a final experience.

Place your animated boss in the scene and name it Boss. Also, add the TakeDamageFromPlayerBullet script component to the Boss object, and make sure the Boss object has a Polygon Collider 2D component.

With the collision ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required