O'Reilly logo

Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation by James A. Henley, Matthew Johnson

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

13. Bringing It All Together

The end approaches and we have built quite the game! Our hero has animations, physics, scripts, and even a double jump! We have enemies, platforms, and dynamic bridges! We even have our menus and a GUI with all of its relevant information. Whew! It was a lot of work, but it shows what you can get out of a 2D game.

Let’s put the finishing touches on our game now. We will start by adding a trigger that will end the level after we have completed it. We will then put some functionality into our game to restart a level when the player dies, and one for when the game is complete. We will add a few small scripts so our levels will run in order from the first one to the last, along with a Game Win scenario.

Last, we will ...

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