From 5626cd16991c8b32df08ff1137c5c14d288bca51 Mon Sep 17 00:00:00 2001 From: Jeffrey Han Date: Wed, 4 Mar 2015 01:30:28 -0500 Subject: [PATCH] Added a "pop" effect to the combo counter. Also changed drawSymbolString() and drawFixedSizeSymbolString() methods slightly: coordinates are now floats, and drawSymbolString() takes an 'alpha' argument. Signed-off-by: Jeffrey Han --- src/itdelatrisu/opsu/GameData.java | 55 ++++++++++++++++------- src/itdelatrisu/opsu/objects/Spinner.java | 2 +- 2 files changed, 41 insertions(+), 16 deletions(-) diff --git a/src/itdelatrisu/opsu/GameData.java b/src/itdelatrisu/opsu/GameData.java index f4387987..5bfb4796 100644 --- a/src/itdelatrisu/opsu/GameData.java +++ b/src/itdelatrisu/opsu/GameData.java @@ -42,6 +42,9 @@ public class GameData { /** Time, in milliseconds, for a hit result to fade. */ public static final int HITRESULT_FADE_TIME = 500; + /** Time, in milliseconds, that a combo pops on the screen. */ + private static final int COMBO_POP_TIME = 250; + /** Time, in milliseconds, for a hit error tick to fade. */ private static final int HIT_ERROR_FADE_TIME = 5000; @@ -134,6 +137,9 @@ public class GameData { /** The max combo streak obtained. */ private int comboMax; + /** The current combo pop timer, in milliseconds. */ + private int comboPopTime; + /** * Hit result types accumulated this streak (bitmask), for Katu/Geki status. *