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:

  • In the same way that we can only create one PlayerStart, change it so that we can only place one goal! In that same line of thinking, have the player start to be invisible when we are playing the game!
  • In our first-person "shooter" game, save the player's Position and Rotation so that whenever you quit and resume the game, you start off where you were!
  • Now that we have the new level editor working, change the system so that we start the game loading a level from a file instead of from the provided array!
  • You may notice that at some places, collectibles are placed on top of one another. Now, this doesn't really hurt levels loaded, as when you save the level, it will only place one of them. However, should you want to fix this, you can just change the collider from a sphere collider to a box collider, as in the corners, it's not detecting that it's colliding.
  • There are other additional ways to save files, such as using XML. For an example of this check out the Unity Wiki at http://wiki.unity3d.com/index.php?title=Saving_and_Loading_Data:_XmlSerializer.
..................Content has been hidden....................

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