VinayGupta23 / alter-ego-game

A puzzle-platformer game with clones! Developed as part of CSCI526: Mobile Games at USC.
https://vinaygupta23.itch.io/alter-ego
0 stars 1 forks source link

Refactor speed powerup and its application into "status effects" #87

Closed vinayg-usc closed 2 years ago

vinayg-usc commented 2 years ago

Right now, we have a single powerup and the handling of that powerup is done directly inside player controller. We would like to further support new use-cases:

Hence, the following refactoring is desired: Segregation of logic between "status effect items" and the "application of effects on player/clone".

Possible approach (feel free to suggest)

We can create an enum with different status effects, for now we have two effects "SPEED_BOOST" and "FLIP_DIRECTION".