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

Build a Classic Duck Hunting Game in Augmented Reality from Scratch

Video Description

Bring the retro classic Duck Hunting game to life in Augmented Reality (AR). Learn key skills in Unity & Vuforia.

About This Video

  • This course is put together specifically for the beginner to the inter-mediate gaming community.
  • To have Unity 3D and a few example applications on your job profile is an enormous advantage for someone looking to work in this field or improve an existing job position internally.

In Detail

AR Gaming has never been so much fun. Learn how to create a retro remake of the classic duck hunting game in augmented reality for IOS & Android devices from the ground up. No experience in prior coding languages is necessary as I guide you through the basics, explaining the why as well as the how when building your game. This is a very hands-on learning by doing the course. The author provides all assets which you can download via the course resources section.


  • Duck model
  • Audio sound files
  • Environmental assets via a download
  • Gun model
  • Graphics for the on-screen display

The author starts with the absolute basics, how to setup Unity and Vuforia, how to import 3D models into unity and then make it all come together. As we progress I explain how to use the Vuforia image targets how to build games in Unity 3D. What better way to learn to code for augmented reality than creating an addictive classic game?

All the code and supporting files for this course are available at: https://github.com/PacktPublishing/Build-a-Classic-Duck-Hunting-Game-in-Augmented-Reality-from-Scratch

Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Chapter 1 : Setup & Installation
    1. Introduction 00:01:26
    2. Download & installing Unity - Beginner Level 00:08:18
    3. Learning the basics of the Unity 3D workspace - Beginner Level 00:19:51
    4. Vuforia - Account creation and integrating it with Unity 3D 00:19:06
    5. Unity 20 17.2 - Installing Vuforia 00:02:04
    6. Your first augmented reality experiment 00:07:41
    7. Absolute beginner C# scripting 00:25:18
  2. Chapter 2 : Updated Unity 2017.2 - Duck Hunter Augmented Reality - Setup & GUI
    1. Gathering and importing the required game assets 00:18:33
    2. Building the Terrain 00:15:28
    3. Adding the Bird & Collider 00:12:17
    4. Adding the Target Cube 00:03:48
    5. Moving the Bird 00:18:41
    6. Moving Target 00:15:47
    7. Building the New World 00:19:51
    8. Making the Volcano Erupt 00:04:51
    9. Creating the Intro Scene Template 00:05:46
    10. Building the GUI Canvas 00:11:51
    11. Building the GUI Canvas - Part 2 00:09:18
  3. Chapter 3 : Duck Hunt AR - Raycasting, the Game Controller & Logic
    1. Raycasting - Part 1 00:19:46
    2. Raycasting - Part 2 00:10:26
    3. Gunshot Smoke Effect 00:10:29
    4. Raycast Loops & Sound 00:17:02
    5. Saving Memory Cleaning Up the Particle Systems 00:10:50
    6. Exporting the First Build to Android 00:13:49
    7. Exporting the First Build to IOS 00:11:30
    8. Game Over Panel, Start Panel & Round Text 00:16:17
  4. Chapter 4 : Game Controller
    1. Game Controller Part 1 - Variables & Foundation 00:14:34
    2. Game Controller Part 2 - Detecting the AR then show and hide what we need to 00:17:26
    3. Game Controller Part 3 - Adding the round animation & sound FX 00:14:49
    4. Game Controller Part 4 - Managing lives and animating the dog 00:17:05
    5. Game Controller Part 5 - Starting a new round 00:13:26
    6. Game Controller Part 6 - Restart & Quit 00:09:18
  5. Chapter 5 : Building the Intro Scene
    1. Intro Scene Titles 00:18:21
    2. Intro Scene Audio Timing 00:05:53
  6. Chapter 6 : Summary & App Store Submission Bonus Section
    1. Summary & App Store Submission Bonus Video 00:18:49