Fixed instant-win wave missions / Fixed units clipping off screen

This commit is contained in:
Anuken
2018-11-07 19:58:53 -05:00
parent 216433aa2d
commit 56ffa7905e
7 changed files with 27 additions and 18 deletions

View File

@@ -324,8 +324,8 @@ public abstract class BaseUnit extends Unit implements ShooterTrait{
if(target != null) behavior();
if(!isWave && !isFlying()){
x = Mathf.clamp(x, 0, world.width() * tilesize);
y = Mathf.clamp(y, 0, world.height() * tilesize);
x = Mathf.clamp(x, tilesize/2f, world.width() * tilesize - tilesize/2f);
y = Mathf.clamp(y, tilesize/2f, world.height() * tilesize - tilesize/2f);
}
}

View File

@@ -41,7 +41,7 @@ public class AlphaDrone extends FlyingUnit {
target = leader;
if(last == null){
circle(leader.isShooting ? 50f : 0f);
circle(leader.isShooting ? 60f : 0f);
}
target = last;