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 ...
Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.