Multiplier - OxiStudios/OrbMain GitHub Wiki
Intro
The multiplier class will house the timer and sprite that will display the multiplier. See health for how the multiplier will be displayed because they will be displayed the same way.
Multiplier Class
- The multiplier class will have a
setMultiplier(int multiply)method that will be called by the correct enemy when it dies. - When
multiplieris set,getMultiplier()will returnmultiplierand will this will get called when scoring is done (when enemy dies). - The boolean,
isMultiplierwill be set to true insetMultiplier(int multiply)and set to false when the multiplier is done. - other classes will be looking to see if
isMultiplieristruebecause if it is, some sprites will look cooler and more neon like.