A 2D Platformer Controller in Unity
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.
Table of Contents
Description
Installation
Design
Features
Misc Notes
Credits
LicenseThe 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.
No open issues yet, or sync has not completed.