Skip to content

Effect Spec

Hendrik Sollich edited this page Feb 5, 2012 · 2 revisions

An Effect should have:

  • an Animationstate ( play, pause, reset)
  • its own timer
  • its own buffer it draws to
  • a reference to what canvas it will be displayed on
  • a certain ( but global frame rate ) -> will set the target canvas framerate as well
  • an algrorithm that draws the effect

Other then that each effect may have different properties. These may include:

  • a point of origin ( e.g. for wave animations or explosions )
  • others I can not yet think of
Clone this wiki locally