Create a 3D Endless Runner from Scratch in Unity [Video]

More Information
  • Use the Unity Mecanim system to create and trigger animation states on a character
  • Design a GUI with a main menu, pop-up windows, and programmable buttons and sliders
  • Program an infinite scrolling 3D platform world
  • Implement background music and sound effects
  • Create and spawn particle systems for magic spells, explosions, and special effects
  • Program a lives count and scoring system that saves the state
  • Build an entire casual game from scratch

Who doesn’t love a good endless runner game? It’s the genre that reigns from the early platform games of Donkey Kong and Mario Brothers. From Canabalt to Temple Run to Subway Surfer, this casual game has been the pastime of many a gamer with a mobile device and a few moments to while away. Of course, the scenery can look repetitive, but there’s quite a bit of work that goes into creating such a game. The interface has to be constructed with pieces of the environment that can always fit together and be procedurally placed.

You’ll start by setting up a character and applying animations in the Unity Mecanim system before writing code to control them. The course gradually takes you through the development of an infinite scrolling 3D world, including the use of the pooling and singleton design patterns. You’ll add obstacles such as fire and walls, which the character is programmed to jump over and destroy. You’ll then put together a graphical user interface (GUI) in Unity's Canvas system, and learn about alignment, fonts, and screen resolutions. The course will also guide you in programming button presses and sliders and creating pop-up windows. As you advance, you’ll explore particle systems for adding special effects for magic spells and explosions. Finally, you’ll learn how to add background music and sound effects and understand how to control them from the GUI.

All the codes and supporting files for this course will be available at-

  • Learn how to program a procedurally generated infinite world
  • Create an animated third-person character and controller
  • Populate an environment with dynamically created obstacles
Course Length 9 hours 30 minutes
ISBN 9781800209183
Date Of Publication 28 Feb 2020


Penny de Byl

Penny de Byl is a full stack developer of most things computer science and academic with a true passion for teaching.  She has been teaching others about games development, programming, computer graphics, animation, and web design for over 25 years in universities in Australia and Europe at the full professor level. Penny has consulted for Unity Technologies, SAE, the Australian Institute of Entertainment and Wikitude. Her best-selling textbooks including Holistic Game Development with Unity are used in over 100 institutions worldwide.  Penny’s graduates have found work in companies like Apple, Ubisoft, LinkedIn, and Deloitte Digital. Penny de Byl has an honors degree in computer graphics and a Ph.D. in artificial intelligence for game characters.  Over the course of her career she has won numerous awards for teaching excellence at the state, national and international levels including the Australian Learning and Teaching Council's Excellence in Teaching Award and the Unity Mobile Game Curriculum Competition. Her approach to teaching computer science and related fields is project-based giving you hands-on workshops you can immediately get your teeth into.