Chapter 8. Interacting with an AR World
Our virtual game world is now being populated with real-world-based places which we want the player to travel to and interact with. For this version of the game, we will let the player visit the places around him and try to sell his cooking monsters. If the place or restaurant likes any of the player's cooks, then it will offer a payment. The player can then accept the payment or move on. However, if the player does accept the payment, the cook will be sold to the restaurant and become its monster chef. A restaurant with a monster chef will not purchase any more cooks until the current chef leaves. A chef will leave after a certain amount of time has expired.
For this chapter, we will focus on completing that interaction of the player exploring the places around them. In order to do this, we will need to construct a new Places scene. This scene will allow the player to sell their monsters to collect new items, such as freeze balls and experience. This...