|
From: Tapio V. <aa...@us...> - 2009-11-21 12:23:25
|
Module: performous
Branch: dance
Commit: 4bac03e47d9debb33a87968c827c32e0e95e4629
Author: Tapio Vierros <tap...@gm...>
Date: Sat Nov 21 14:22:21 2009 +0200
Temporary hack for testing note hitting effect.
---
game/dancegraph.cc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/game/dancegraph.cc b/game/dancegraph.cc
index f344c3f..0c5dfe2 100644
--- a/game/dancegraph.cc
+++ b/game/dancegraph.cc
@@ -191,6 +191,11 @@ void DanceGraph::draw(double time) {
if (tEnd < past) continue;
if (tBeg > future) break;
+ // TODO: Remove me (temporary hack to test hitAnim)
+ if (tBeg <= 0.0 && !it->isHit) {
+ it->isHit = true; it->hitAnim.setTarget(1.0, false);
+ }
+
int arrow_i = it->note.note;
float x = -1.5f + arrow_i;
float s = 0.6f;
|