Minor UI changes for pause button

This commit is contained in:
Anuken
2018-01-04 15:18:38 -05:00
parent 226ad16242
commit 4d44fc3855
5 changed files with 202 additions and 184 deletions

View File

@@ -10,7 +10,7 @@ import io.anuke.ucore.entities.Entity;
import io.anuke.ucore.util.Angles;
import io.anuke.ucore.util.Mathf;
//TODO clean up this giant mess
//TODO clean up this mess
public interface Syncable {
public Interpolator<?> getInterpolator();
@@ -20,6 +20,7 @@ public interface Syncable {
public abstract void read(T entity, float[] data);
public abstract void update(T entity, Interpolator interpolator);
//TODO write dashing state so particles appear
public static final SyncType<Player> player = new SyncType<Player>() {
@Override
public float[] write(Player entity) {
@@ -78,7 +79,7 @@ public interface Syncable {
};
}
public static class Interpolator<T extends Entity> {
class Interpolator<T extends Entity> {
public SyncType<T> type;
public Vector2 target = new Vector2();
public Vector2 last = new Vector2();