Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Unity 3D location based game development with Mapbox
Rating: 3.9 out of 5(317 ratings)
19,388 students

Unity 3D location based game development with Mapbox

Bring location-based experiences to life! Add real time locations and mapping into your games with Unity 3D
Last updated 6/2018
English

What you'll learn

  • Integrate the Mapbox SDK into Unity 3D games
  • Generate Custom 3D Maps
  • Use Points of Interest to Make Real-World Experiences

Course content

2 sections51 lectures10h 13m total length
  • Mapbox Unity 3D Essentials Overview2:32

    Learn to build location-based and tabletop augmented reality games with Mapbox Unity 3D. Use Mapbox Studio, real-time location data, vector tiles, AR kit events, dynamic objects, and runtime map randomization.

  • PocketDroids GO! Promo1:20

    Build Pocket droids go, a location-based mobile game in Unity 3D powered by the Mapbox Maps SDK, letting players capture droids with real-time location data and custom-styled maps.

  • What is Mapbox?5:01

    Explore mapbox as a location data platform. Leverage Unity 3D support, vector and satellite maps, 3D buildings, and built-in map editor plus visual scripting editor for rapid location-based game development.

  • Setting up the project8:47

    Set up a Unity 3D project with the Mapbox STK by creating a pocket droid's go project, installing the Mapbox SDK, configuring an access token, and organizing folders.

  • Styling our map with Mapbox Studio12:31

    Create and customize a Mapbox Studio style for a Unity map by selecting a streets template, trimming unused layers, adjusting road colors and widths, and centralizing the style for reuse.

  • Setting up our map9:01
  • Building the UI15:31

    Set up a Unity UI for pocket droids go by adding a canvas, profile badge, and menu button, and implement dynamic level and XP text with a UI manager.

  • Putting our player on the map13:04

    Set up a Unity 3D location-based game with Mapbox by configuring a player prefab that uses device, editor, transform, and rotate with location providers, with a camera following the player.

  • Creating the Droid class5:47

    Define the droid class in Unity, add serialized fields and a box collider, attach it to droid prefabs, and prepare collectible, captureable entities for the pocket droids go game.

  • Singletons and the DroidFactory13:13

    Create a singleton pattern and a droid factory to populate a location-based Unity game with droids around the player on the map, using Mapbox and timed generation.

  • Capture Scene Prep9:24
  • Creating & Implementing the GameManager11:04

    Create a singleton game manager to store the current player and manage game state across scenes, enabling seamless transitions and global access via a loader setup.

  • Improving the UI Controller12:12

    Improve the ui controller by refactoring the ui manager to update the current player's level and xp through the game manager, using an object-oriented, frame-updated approach for a reactive ui.

  • Introduction to Vector Tile Factories14:52
  • Creating the XP Bonus Prefab15:27

    Create an xp bonus prefab in a Unity 3D Mapbox location-based game, using a 3D text label with a float and rotate animation to grant experience on mouse down.

  • Points of Interest and Game Object Modifiers13:03

    Learn how to add points of interest as parks on a map using mapbox visualizers, and apply prefab modifiers to spawn XP bonuses with filters and scale settings.

  • Adding Audio to the World Scene14:22

    Add audio to the world scene by importing sounds, setting a looping main world theme on an audio source, and wiring UI and droid sounds as one-shot effects.

  • Building the Capture scene18:11
  • Creating the Override Orb object17:45

    Create an override orb in Unity using a particle system and custom material, with color over lifetime, size variation, and an attached light saved as a prefab.

  • Setting up the Override Orb Script16:30

    Learn to set up the override orb script in Unity, handling dragging, throwing, collisions, and lifecycle timing with serialized fields, input status, and a robust update loop.

  • Intro to Platform Dependent Compilation12:48

    Explore platform dependent compilation in Unity to tailor input handling for editor versus mobile devices, using directives to switch between mouse and touch input and write universal, platform-safe code.

  • Throwing the Orb17:01

    Follow input to move and throw an orb in a Unity 3D Mapbox project, using raycast, lerp smoothing, and rigidbody physics to translate screen gestures into world space velocity.

  • Handling Orb Collisions14:08

    Learn to implement orb collisions in a Unity Mapbox project by adding audio sources, tags, and a sphere collider, and handling droid vs ground hits via collision events.

  • Override Orb Respawn and Limitations14:25

    Learn how to limit and respawn the override orb in Unity by using a scene manager to track max and current throw attempts, with a scalable calculation function.

  • Building the capture scene UI15:26

    Set up the capture scene UI in Unity 3D Mapbox by importing badges, building a scalable root canvas, and arranging fail, success, and override orb counter elements for multiple screens.

  • Controlling the Capture scene UI16:33

    Create a capture scene UI controller, introduce a capture scene status enum and virtual overrides, and build a UI manager to display in-progress, success, and failure screens with orb counts.

  • Transitioning Between Scenes14:50
  • Saving & Loading Player Data19:18

    Save and load player and droid data to maintain persistent progress across sessions by serializing player and droid data classes with Unity's binary formatter.

  • Project wrap up and student challenges7:40

Requirements

  • Must have a Mac or PC for Unity game development
  • A basic knowledge of Unity 3D

Description

Mapbox Unity 3D Essentials by Devslopes

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.

This Unity course is for beginners & seasoned programmers!

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:

  1. Installation & Setup

  2. Creating a map in Unity

  3. Customizing a map in Mapbox Studio

  4. Location Providers

  5. Vector Tiles

  6. Terrain

  7. Custom Visualizers

  8. AR Root, MapHolder, & FocusSquare

  9. Location-based AI for Enemy motion

  10. Utilizing Mapbox’s Points of Interest

Now is the time to learn how Mapbox adds more powerful and engaging experiences to your games!

Who this course is for:

  • Game developers who want to add location-based gameplay to their Unity games