From 0ff37defc1a867edc68ba0cc852ba0d20c5c987a Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 31 Oct 2011 18:17:48 +0100 Subject: [PATCH] repaired & improved noteEffects --- Aquaria/Avatar.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Aquaria/Avatar.cpp b/Aquaria/Avatar.cpp index c5f6c9f..18ad9f0 100644 --- a/Aquaria/Avatar.cpp +++ b/Aquaria/Avatar.cpp @@ -517,7 +517,10 @@ void SongIcon::onUpdate(float dt) rippleTimer = 0.5f - (note/7.0f)*0.4f; if (core->afterEffectManager) - core->afterEffectManager->addEffect(new ShockEffect(position,core->screenCenter,0.02,0.015,22,0.2f, 1.2)); + { + core->afterEffectManager->addEffect(new ShockEffect(position - Vector(400, 300) + Vector(core->width/2, core->height/2), + core->screenCenter,0.009f,0.015f,18,0.2f, 0.9f + (note*0.08f) )); + } } } }