Implement 'hidden' game mod
This commit is contained in:
@@ -117,6 +117,9 @@ public class Game extends BasicGameState {
|
||||
/** Hit object approach time, in milliseconds. */
|
||||
private int approachTime;
|
||||
|
||||
/** Decay of elements in hidden mod, in milliseconds. */
|
||||
private int decayTime = 800;
|
||||
|
||||
/** Time offsets for obtaining each hit result (indexed by HIT_* constants). */
|
||||
private int[] hitResultOffset;
|
||||
|
||||
@@ -1329,7 +1332,8 @@ public class Game extends BasicGameState {
|
||||
gameObjects[stack.pop()].draw(g, trackPosition);
|
||||
|
||||
// draw OsuHitObjectResult objects
|
||||
data.drawHitResults(trackPosition);
|
||||
if(!GameMod.HIDDEN.isActive())
|
||||
data.drawHitResults(trackPosition);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1515,6 +1519,12 @@ public class Game extends BasicGameState {
|
||||
*/
|
||||
public int getApproachTime() { return approachTime; }
|
||||
|
||||
|
||||
/**
|
||||
* Returns the object decay time in hidden mod, in milliseconds.
|
||||
*/
|
||||
public int getDecayTime() { return decayTime; }
|
||||
|
||||
/**
|
||||
* Returns an array of hit result offset times, in milliseconds (indexed by GameData.HIT_* constants).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user