Boss waves, health bars / Better lasers / Bugfixes
This commit is contained in:
@@ -37,13 +37,6 @@ public class Interpolator{
|
||||
|
||||
public void update(){
|
||||
|
||||
/*
|
||||
if(pos.dst(target) > 128){
|
||||
pos.set(target);
|
||||
lastUpdated = 0;
|
||||
updateSpacing = 16;
|
||||
}*/
|
||||
|
||||
if(lastUpdated != 0 && updateSpacing != 0){
|
||||
float timeSinceUpdate = Time.timeSinceMillis(lastUpdated);
|
||||
float alpha = Math.min(timeSinceUpdate / updateSpacing, 2f);
|
||||
|
||||
Reference in New Issue
Block a user