Home

Awesome

image

2D Platformer Hunter

Implementation of a raycast-based 2D platformer controller in Unity.
Extended from Sebastian Lague's Creating a 2D Platformer series with more customizable options and better modularization.

<details open="open"> <summary>Table of Contents</summary> <ol> <li> <a href="#description">Description</a> </li> <li> <a href="#installation">Installation</a> </li> <li> <a href="#design">Design</a> </li> <li> <a href="#features">Features</a> </li> <li> <a href="#misc-notes">Misc Notes</a> </li> <li> <a href="#credits">Credits</a> </li> <li> <a href="#license">License</a> </li> </ol> </details>

Description

Installation

Design

The code structure is based on a Input-Controller-Motor model. Each controller consists of three individual components: Input, Controller and Motor.

Each module can be replaced with user-customized module to achieve various gameplay mechanics.

Other behaviours that do not belong to these three modules should instead be implemented in a different external components and set to listen to events sent out by one of these three main modules.

For instance, a sprite animation controller that swaps sprites when a character performs a jump should be set to listen to the OnJump event of the CharacterController object.

Features

Jumping

Climbing

Other

Misc Notes

Credits

License