top of page
Unity Subclass Sandbox Pattern Snake with Abilities
This is an implementation of the Subclass Sandbox Pattern on Snake using Unity. I utilized the Subclass Sandbox Pattern to add three abilities to the snake: Speed Up, Slow Down, and Jump.
Specs | Date | Role | Team Composition |
---|---|---|---|
Unity PC Subclass Sandbox Pattern | 01/2024 | Game Programmer | Programmer * 1 |
Details
The Subclass Sandbox Pattern:
I chose the Subclass Sandbox pattern to implement different abilities for my Snake game. The reason why I chose it is simple: The Subclass Sandbox is perfectly suited for this use case.
Assets/Scripts/Abilities/Ability.cs:
The Ability class is the base class of all abilities. It has an Activate()