Fix the original vanish effect never disappearing
This commit is contained in:
parent
ccec6f7b81
commit
79fac8c328
1 changed files with 8 additions and 11 deletions
|
@ -43,8 +43,6 @@ public class VanishEffect implements IEffect {
|
|||
|
||||
@Override
|
||||
public void draw(SpriteBatch batch) {
|
||||
// Draw the previous vanishing cell
|
||||
if (vanishElapsed <= vanishLifetime) {
|
||||
vanishElapsed += Gdx.graphics.getDeltaTime();
|
||||
|
||||
// vanishElapsed might be < 0 (delay), so clamp to 0
|
||||
|
@ -56,10 +54,9 @@ public class VanishEffect implements IEffect {
|
|||
float centerOffset = cell.size * 0.5f - vanishSize * 0.5f;
|
||||
Cell.draw(vanishColor, batch, cell.pos.x + centerOffset, cell.pos.y + centerOffset, vanishSize);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDone() {
|
||||
return false;
|
||||
return vanishElapsed > vanishElapsed;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue