Summary
For most of this chapter, we wrote and updated the various core scripts needed to track the monsters on the map. We first started by understanding some fundamental math to calculate spatial distances. Then, we moved on to to understanding GPS accuracy and the factors that influence accuracy. After that, we jumped into scripting the monster service script and other dependent scripts. Next, we added prefab instantiation code to the monster script in order to show a simple prefab on the map. Then, we imported a new monster character into the game and configured a new monster prefab. Through testing, we determined there were a few issues yet to be resolved. These we then resolved through a script update and review. Then, finally we implemented ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access