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 multiplier is set, getMultiplier() will return multiplier and will this will get called when scoring is done (when enemy dies).
  • The boolean, isMultiplier will be set to true in setMultiplier(int multiply) and set to false when the multiplier is done.
  • other classes will be looking to see if isMultiplier is true because if it is, some sprites will look cooler and more neon like.