Create a 3D Endless Runner from Scratch in Unity
4.7 (123 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
1,249 students enrolled

Create a 3D Endless Runner from Scratch in Unity

Learn how to make an infinite scrolling platform game in Unity with C# working through all stages of game development.
4.7 (123 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
1,249 students enrolled
Last updated 12/2019
English
English [Auto-generated]
Current price: $15.99 Original price: $19.99 Discount: 20% off
6 days left at this price!
30-Day Money-Back Guarantee
This course includes
  • 9.5 hours on-demand video
  • 1 article
  • 22 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • How to use the Unity Mecanim system to create and trigger animation states on a character.
  • How to design a graphical user interface with a main menu, pop-up windows and programmable buttons and sliders.
  • How to program an infinite scrolling 3D platform world.
  • How to implement background music and sound effects.
  • How to create and spawn particle systems for magic spells, explosions and special effects.
  • How to program a lives count and scoring system that saves the state.
  • How to build an entire casual game from scratch.
Course content
Expand all 42 lectures 09:40:59
+ Introduction
3 lectures 04:01

This lecture provides a brief overview of the content we will cover in this course.

Preview 02:21

H3D has a bustling online student community.  Here's how to get involved.

Join the H3D Student Community
01:15

A list of frequently asked questions by students as well as important information about how to proceed with the course.

FAQs
00:25
+ Animating the Player
2 lectures 36:27

In this lecture you will learn how to setup the initial player character and control a jump animation with the space bar and mecanism system.

Preview 19:33

In this lecture you will add the magic casting animation onto the character and learn how to blend it with the run animation.  Following this the arrow keys will be programmed to turn the character 90 degrees.

Casting a Spell
16:54

This quiz will test your knowledge of the character setup and animation process.

Quiz 1
5 questions
+ Creating an Endless Environment
4 lectures 01:01:00

In this lecture we will examine the setup of models and the requirements for creating a procedurally generated environment.

Platform Model Setup
18:41

In this lecture we will take a look at how to turn corners in generating the procedural platform world.

Turning Corners
19:34

In this lecture we will construct a pool to restrict the number of platforms that are available to the world generation system.

Preview 15:20

In this lecture we continue the development of the object pool and get it working with the environment generation.

Creating a Platform Pool Part 2
07:25
+ Adding the Perpetual Runner
5 lectures 01:17:09

In this lecture we will add code to scroll the environment to prevent infinite position calculations and add physics constraints to the player character and platforms.

Scrolling the Environment
19:59

In this lecture we will add Y Scrolling to the platform world and get each platform ready for infinite world creation.

Scrolling in the Y
13:14

In this video you will learn how to spawn platforms as the world scrolls beneath the player character.

Spawning Platforms on the Move
19:18

In this lecture we will examine an issue that can cause a logic bug to rear itself and have platforms spontaneously disappear.

The Bounce Dilemma
05:16

In this lecture we will deal with adding in the complexity of a T-Intersection and turning corners.

Adding a T-Intersection
19:22
+ Adding Obstacles
5 lectures 01:14:03

In this lecture we will add a particle system representing fire into the environment that will trigger the death animation on Astro.

Fire Obstacles
18:22

In this lecture we will program fires to spawn on random platforms.

Adding Random Fires to Platforms
17:53

In this lecture you will learn how to create a wall obstacle that can be exploded apart.

Building a Wall
08:50

In this lecture you will use the magic collision with the wall to break the bricks apart.

Generating Magic
16:42

In this lecture you will learn how to create prefab platforms with walls on them.

Walled Platforms
12:16
+ Adding a Graphical User Interface
6 lectures 01:29:55

This lecture covers some theory pertaining to graphical user interface design and gives a simple layout that we will apply to the endless runner game.

The Graphical User Interface
10:22

In this lecture we will begin constructing the main menu and discussing GUI items.

The Main Menu Part 1
19:58

In this lecture we will complete adding the buttons to the main menu and program the play game button to switch into the game scene.

The Main Menu Part 2
11:07

In this section we will examine how to setup the quit button in the game scene to return to the main menu as well as how to quit the application.

The Main Menu Part 3
14:46

In this lecture we will tidy up the layout of the buttons and create popup windows to house more information.

Creating Menu Popups
18:13

In this lecture we will complete the programming of the popup windows and make the code more flexible.

Finishing Popups
15:29
+ Lives and Scoring
6 lectures 01:33:08

In this lecture you will learn how to add an animated coin into the environment and make platforms featuring them.

Animating Coins
17:22

In this lecture we will add colliders to the coins and make a score that gets updated when Astro runs over a coin.

Picking Up Coins
19:59

In this lecture we will address the issue of the destroyed coins not being reset on the platforms after being destroyed.

Coin Resetting
06:17

In this lecture we will begin adding the icons representing the player's lives to the GUI and start coding the properties to count the player deaths.

Programming Lives Count
16:19

In this lecture we will complete adding the code to count the player lives and display them in the GUI.

Displaying Lives
15:27

In this lecture you will learn how to record the score and highest score and display on the statistics popup screen.

Statistics
17:44
+ Final Touches
9 lectures 02:12:21

In this lecture we will be discussing Fog, what it's settings are and how to use it.

Fog
12:47

In this lecture we will construct a magical particle system explosion.

Explosions
16:04

In this lecture we will go through the steps to add the explosion to the end of the magic action where the cast spell hits the wall.

Exploding the Wall
12:11

In this lecture we will construct the options settings with volume sliders and hook them up to control a looping background track.

Adding Music
18:40

In this lecture we will examine how to save the sound settings and apply volumes to sound effects as well as music.

Saving Sound Settings
18:34

In this lecture we will fire off some simple sound effects to compliment some actions in the game.

Sound Effects
09:50

In this lecture you will learn how to synchronise sounds to play in the middle of animations.

Syncing Sounds with Animation
09:39

In this lecture we will add a floating up score and particle effects to the coin pickup system.

Animated Pickups
19:09

In this lecture we will add a few extra bits and pieces to improve the final game quality.

Final Touches
15:27
+ Final Words
2 lectures 12:55

A course wrap-up by the instructor.

Some Final Words from Penny
01:39

Want to continue your game development journey?  Here's some advice.

Where to Now?
11:16
Requirements
  • A good understanding of C#.
  • A basic understanding of the Unity Game Engine.
Description

Who doesn’t love a good endless runner? Did you know 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. But did you know there’s quite a bit of work that goes into such a game? Of course the scenery is repetitive, but did you know that it has to be constructed with pieces of the environment that can always fit together and be procedurally placed?

In this course, Penny will take you through all the stages of game development with C# and the Unity Game Engine using her internationally acclaimed Holistic teaching style and expertise from over 25 years teaching, researching and writing about games. Throughout the course you will follow along with hands-on workshops designed to teach you these core programming concepts that will take your games to the next level.  All assets including models, animations, textures and sounds are supplied.

The objective of this course is to teach you all you need to know to make your own game!

Learn how to program and work with:

  • Character and World Models

  • Character Animations

  • Procedural Infinite World Generation

  • Graphical User Interfaces

  • Pick-ups

  • Particle Systems

  • Background Music

  • Sound Effects

Content and Overview

The course begins with setting up the character and applying animations in the Unity mecanim system, before writing code to control them.  It continues step-by-step, going through the development of an infinite scrolling 3D world, including the use of the pooling and singleton design patterns. In these sections, obstacles such as fire and walls are added which the character is programmed to jump over and destroy. Thereafter, a graphical user interface (GUI) is put together in Unity's canvas system, where you will learn about alignment, fonts and screen resolutions as well as how to program button presses, sliders and create pop-up windows.  Next, particle systems are investigated as a means of providing some special effects and several are constructed from scratch for magical spells and explosions.  Finally, background music and sound effects are covered, as is controlling the sound of each from the GUI.

What students are saying about Penny's courses:

  • She is the best teacher ever in this platform.

  • Most instructors are very smart people. Some are good at teaching and some are not. Penny is great at describing complex concepts without going down a dark cerebral rabbit hole that so many instructors feel obligated to do. It's like they need to demonstrate their knowledge by explaining every tiny aspect. Penny does not go there. She explains things clearly but does not overwhelm the student with more than they need to know. There is only so much most people can absorb in one sitting. You need to study, then you need to practice and then more study. I have taken most of her classes and I recommend them all.

Who this course is for:
  • Beginner Unity students.
  • Intermediate users of Unity interested in working through an entire game project.
  • Game development students of all ages.