Giter VIP home page Giter VIP logo

unity-endless-runner's Introduction

Endless Runner

In space, no-one can hear you. (Actual fact.)

This project implements an endless runner game by following and extending on the ideas in the Create a 3D Endless Runner from Scratch in Unity Udemy course.

I have to say that while following the course was a really good learning experience, the coding style in the lectures is just horrible. So ... better to follow the course in space.

Since I'm still learning Unity at this point and am not aware of Unity-specific best practices, I'm not sure if I'm was doing the right thing here when trying to keep or save my sanity. Also, some of the bugs - such as being able to jump multiple times, or being able to cancel the dying animation through jumping - are not fixed here. Anyway, maybe someone does find this project helpful regardless of that.

Implementation

Core ideas:

  • Tiles are being spawned by a "virtual character" moving ahead of the player.
  • The player isn't moving horizontally at all, the world is.
  • Platforms are spawned from an object pool and everything behind the player is recycled immediately.

This project uses:

  • Object pooling,
  • The animation system with blended animations,
  • Animation triggers (shooting magic, footstep sounds, ...),
  • A bunch of particle systems,
  • Overlapping colliders with initially deactivated physics for exploding wall bricks.

The following video shows the continuous world generation by using physics collisions triggers:

Platform generation video

Here's some gameplay footage:

Gameplay video

A platform prefab showing the triggers used for spawning new platforms ahead of the player:

One of the bigger obstacles in the game, the wall, being blasted away by the magic spell projectile:

unity-endless-runner's People

Contributors

sunsided avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.