.\README\attr.main\Bullet\BulletType\BasicBulletType\ArtilleryBulletType>

ArtilleryBulletType

extends BulletType

fieldtypedefaultnote
trailMultfloat1.0
trailSizefloat4.0

构造方法

public ArtilleryBulletType(float speed, float damage, String bulletSprite){
    super(speed, damage, bulletSprite);
    collidesTiles = false;
    collides = false;
    collidesAir = false;
    scaleVelocity = true;
    hitShake = 1f;
    hitSound = Sounds.explosion;
    shootEffect = Fx.shootBig;
    trailEffect = Fx.artilleryTrail;

    shrinkX = 0.15f;
    shrinkY = 0.63f;

    //for trail:
    /*
    trailLength = 27;
    trailWidth = 3.5f;
    trailEffect = Fx.none;
    trailColor = Pal.bulletYellowBack;

    trailInterp = Interp.slope;

    shrinkX = 0.8f;
    shrinkY = 0.3f;
    */
}

public ArtilleryBulletType(float speed, float damage){
    this(speed, damage, "shell");
}

public ArtilleryBulletType(){
    this(1f, 1f, "shell");
}