Summary

Congratulations on completing your second game! We learned how to simplify the player controls by placing the keyboard checks and collision forecasting into a single script. We covered several ways to deal with Sprite animation from rotating the image to setting what sprites should be displayed. We dealt with global variables and used them to implement a room transitioning system. We covered some new object properties in depth and persistence. Then we spent some time dealing with artificial intelligence through the use of proximity detection and path finding. We even discovered how to make an object navigate a room on its own while avoiding obstacles.

With the skills you have honed in this chapter, you will now be able to build games with multiple rooms with enemies that appear to think. It's your turn now to extend this game by adding more unique enemies, have the trophy open, and spawn loot. Have fun and explore your new found abilities!

In the next chapter we are going to build an epic boss fight for a platformer style game. There will be guns and lasers, and lots of fun. We will be starting to make our code more efficient by looking at creating reusable scripts, and learning how to structure our code systematically. All of this will help us to make our games faster and easier, so let's get going!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.151.220