
Meet instructor William, an experienced game creator who teaches others how to make games, apps, and websites; explore more content at Red Fool Studio and start the course today.
Create a new 2D Unity project for the endless runner, establish art, prefabs, scenes, and scripts folders, and set the game to 16:9 aspect ratio.
Download and extract the asset zip, import art, configure square and triangle sprites, set sprite mode, pixels per unit, filter mode, and compression, then place and scale them in scene.
Create the menu background by building and aligning ground blocks under a ground object, adding colliders and a color change, then duplicate them. Add a particle system for background effects.
Create a main menu in Unity by adding a screen space camera canvas with scale with screen size, including a title, high score, and play button.
Create and wire the main menu, ground motion, and ground spawner scripts in Unity 2D to enable play navigation, time scale control, high score display, and prefab-based ground spawning.
Duplicate and rename scenes to build the game scene, add the score UI and a hidden game over panel, then implement play again and main menu buttons.
Create a new player object in Unity 2D, add a rigidbody 2D and circle collider 2D, constrain the x axis, set a camera point, and color the player blue.
Create a single, robust player script in Unity 2D to manage jumping, double jumps, power-ups, collisions, and game over UI for an endless runner.
Create and customize a 2D Unity particle system for the player, adding teal, green, and yellow boom particles, and implement ground tagging, collisions, prefabs, and gravity and velocity tuning.
Create a camera script for the main camera and assign the player as the object to follow. Use update with a speed and lerp to interpolate x and y positions.
Create spike obstacles in Unity 2D endless runner by building spike blocks, applying box and polygon colliders, tagging spikes, and testing collisions with a ground spawner and prefab spikes.
Create and test double jump and gold power ups in a Unity 2D endless runner, using trigger box colliders, tags, colors, and prefabs to ensure correct behavior.
Add more ground platforms, place a green power-up, and create four ground variants with spikes. Test spawn behavior and include the game scene in build settings.
Experience an endless runner in Unity 2D, featuring a main menu, high score, play button, and a rolling block dodging triangles on random platforms with power ups.
By the end of this course you will know how to create your very own Endless Runner Game in Unity. We will be starting from complete scratch building the scene for our game then all the way through until we have complete bird movement with respawning pipes and a store functionality.
A Endless Runner Game is classic style game where you avoid objects until defeat. It offers the player an addictive fun challenge that can be replayed over and over again. By adding powerups the player will be able to enhance their play style and add more abilities to help avoid in coming obstacles to the player. The particle systems will enhance how the player interacts with the game world.
If you are new to coding do not worry all scripts will be walked through for each game object and source code will be available for download.
With the steps below we will create our Endless Runner Game:
- Menu background
- Menu UI
- Game scene
- Game scene UI
- Player object
- Player movement
- Platform design
- Platform spawner
- Spike obstacles
- Particle systems
- Powerups
- Game over screen
After completing each step above you will have your very own Endless Runner Game template and the knowledge to craft it into your own design for future game ideas.