#include "Vector2.h"
#include "input/inputManager.h"
+#include "config/config.h"
/// ***** Private Variables *****
mouseWell = new GravityWell(input::mousePosition());
- effects[0] = mouseWell;
+ effects[0] = new Screen();
effects[1] = new Gravity();
- effects[2] = new Screen();
+ effects[2] = mouseWell;
}
void effect::clean()
{
}
void effect::handleInput()
{
- mouseWell->setPosition(input::mousePosition());
+ if(cfg::mouseWellOn())
+ {
+ numEffects = 3;
+ mouseWell->setPosition(input::mousePosition());
+ }
+ else
+ {
+ numEffects = 2;
+ }
}
Vector2 effect::positionDelta(const PhysicsEntity* e, float time_step)