prevent hue shifting when hue inc or obj color override is changed by sb

This commit is contained in:
yugecin
2016-11-13 01:39:30 +01:00
parent 81890effd3
commit cf14bca4a5
7 changed files with 18 additions and 12 deletions

View File

@@ -22,6 +22,7 @@ import itdelatrisu.opsu.objects.curves.Vec2f;
import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
import yugecin.opsudance.ObjectColorOverrides;
/**
* Interface for hit object types used during gameplay.
@@ -33,6 +34,8 @@ public abstract class GameObject {
private int time;
private float hue;
public void updateStartEndPositions(int startTime) {
time = startTime;
start = getPointAt(startTime);
@@ -101,6 +104,14 @@ public abstract class GameObject {
public abstract Color getColor();
public abstract Color getMirroredColor();
public abstract void updateColor();
public void updateColor() {
hue = ObjectColorOverrides.hue;
}
// the hue of objectcoloroverrides at the point of this circle..... i know, shit placement... used for sb when hue inc changes / rainbow override
public float getHue() {
return hue;
}
}