O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unity 3D Mapbox: Location-Based Game Development

Video Description

Learn how to build experiences for exploring the world with Mapbox. Add location into any game with their mapping, navigation, and location search SDKs. Harness the power of location like Pokémon GO, Ingress, & Zombies, Run! These videos were produced in collaboration with the good folks at Mapbox. You'll learn what Mapbox can do, how to add the Mapbox SDK to your Unity 3D projects, then build some amazing games that leverage the power of location and maps. First off, you’ll build PocketDroids GO where your players will capture Droids into their collection, based on real-time location data which is seamlessly integrated into the game with Mapbox. You’ll build both a main world scene as well as a capture scene where players can attempt to capture rogue bots in the wild. Moving on, you’ll build another game called Drenches of War – a super fun, portable, defense game. You’ll learn all about ARTabletopKit from Mapbox so that you can get your drench on anywhere there’s a flat surface! Defend a city from hordes of oncoming enemies bent on soaking you and your home base. We’ll be dynamically generating buildings and obstacles with Mapbox’s Terrain Vector Tile system and their curated Points of Interest. Here are some of the things you will learn: Installation & Setup Creating a map in Unity Customizing a map in Mapbox Studio Location Providers Vector Tiles Terrain Custom Visualizers AR Root, MapHolder, & FocusSquare Location-based AI for Enemy motion Utilizing Mapbox’s Points of Interest Now is the time to learn how Mapbox adds more powerful and engaging experiences to your games!

Table of Contents

  1. PocketDroids Go
    1. Mapbox Unity 3D Essentials Overview 00:01:20
    2. What is Mapbox? 00:04:45
    3. Setting up the project 00:08:30
    4. Styling our map with Mapbox Studio 00:08:30
    5. Setting up our map 00:08:45
    6. Building the UI 00:15:07
    7. Putting our player on the map 00:12:47
    8. Creating the Droid class 00:05:26
    9. Singletons and the DroidFactory 00:13:01
    10. Capture Scene Prep 00:09:08
    11. Creating & Implementing the GameManager 00:10:37
    12. Improving the UI Controller 00:11:44
    13. Introduction to Vector Tile Factories 00:14:25
    14. Creating the XP Bonus Prefab 00:15:05
    15. Points of Interest and Game Object Modifiers 00:12:36
    16. Adding Audio to the World Scene 00:13:55
    17. Building the Capture scene 00:17:48
    18. Creating the Override Orb object 00:17:22
    19. Setting up the Override Orb Script 00:16:02
    20. Intro to Platform Dependent Compilation 00:12:21
    21. Throwing the Orb 00:16:34
    22. Handling Orb Collisions 00:13:44
    23. Override Orb Respawn and Limitations 00:13:58
    24. Building the capture scene UI 00:15:03
    25. Controlling the Capture scene UI 00:16:05
    26. Transitioning Between Scenes 00:14:23
    27. Saving & Loading Player Data 00:18:51
    28. Project wrap up and student challenges 00:07:17
  2. Drenches of war
    1. Introduction to Drenches of War and Mapbox AR 00:08:00
    2. Setting up the project and Mapbox SDK 00:08:36
    3. Creating and applying a Mapbox Studio Style 00:07:01
    4. Mapbox Image and Terrain Factories 00:12:02
    5. Launching water balloon projectiles 00:11:54
    6. Setting up the UI and the GameManager 00:09:04
    7. Enemy tanks 00:13:58
    8. Debug Land & Paintballs 00:15:53
    9. The Tank Factory 00:13:03
    10. The SpawnOnMap script 00:14:00
    11. Points of Interest (POIs) 00:14:41
    12. Adding Sound Effects 00:16:58
    13. Adding Scripts to Mapbox Vectors 00:19:13
    14. Collision Cleanup 00:11:58
    15. Improving Performance with Filters 00:11:41
    16. Prepping for Deployment 00:10:54
    17. Building the Project 00:09:17
    18. Post-build Cleanup 00:08:10
    19. Building with shaders 00:06:16
    20. Project wrap-up and Challenge 00:05:11
    21. Some housekeeping tasks 00:10:07
    22. Randomizing Mapbox Location 00:14:05
    23. Building for Android 00:08:11