use of com.shatteredpixel.shatteredpixeldungeon.mechanics.Ballistica in project shattered-pixel-dungeon-gdx by 00-Evan.
the class Eye method act.
@Override
protected boolean act() {
if (beamCharged && state != HUNTING) {
beamCharged = false;
}
if (beam == null && beamTarget != -1) {
beam = new Ballistica(pos, beamTarget, Ballistica.STOP_TERRAIN);
sprite.turnTo(pos, beamTarget);
}
if (beamCooldown > 0)
beamCooldown--;
return super.act();
}
Aggregations