Challenges

For those of you who want to do more with this project, there are still plenty of things you can do, especially after finishing the rest of this book. Here are some ideas to get your mind thinking:

  • Add in sounds and music to the game and customize the GUI in the ways we talked about earlier!
  • Create levels of your own! Danny Calleri has created a really nice level editor called Toast Editor that you can run from your web browser to design levels graphically. To use it, go to http://dannycalleri.github.io/toasteditor/index.html. When exporting, use the C++ option and replace the top line with our levels line and add new int [] to the beginning of every line in the array.
  • Going one step further, instead of creating arrays for the levels, it is possible to load in text files in Unity, so you can load the levels from a file. For more information on Text Assets, see http://docs.unity3d.com/Manual/class-TextAsset.html.
  • As it stands when the player hits one of the orbs, they can jump again, if you'd prefer to not have this happen, adding an additional parameter to the Raycast function with the Tag of the object would solve the issue.
..................Content has been hidden....................

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