|
From: Tapio V. <aa...@us...> - 2009-12-10 09:13:09
|
Module: performous
Branch: master
Commit: 5ffd3ea7599d8a03bdc992d6f67abeb51058c7bc
Author: Tapio Vierros <tap...@gm...>
Date: Thu Dec 10 11:03:16 2009 +0200
Long streaks give bonus points to starmeter.
---
game/guitargraph.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/game/guitargraph.cc b/game/guitargraph.cc
index 5c251e1..8bd687f 100644
--- a/game/guitargraph.cc
+++ b/game/guitargraph.cc
@@ -41,6 +41,7 @@ namespace {
return score;
}
+ const int streakStarBonus = 500;
int getNextBigStreak(int prev) { return prev + 50; }
inline float blend(float a, float b, float f) { return a*f + b*(1.0f-f); }
@@ -213,6 +214,7 @@ void GuitarGraph::engine() {
if (m_streak >= getNextBigStreak(m_bigStreak)) {
m_streakPopup.setTarget(1.0);
m_bigStreak = getNextBigStreak(m_bigStreak);
+ m_starmeter += streakStarBonus;
}
if (m_starpower.get() > 0.01) m_correctness.setTarget(1.0, true);
}
|