Ejemplo n.º 1
0
        public TurtleProjectile2(Turtle mobile, float angleOffset)
            : base(mobile, ShotType.S2, 0, 0, canCollide: false)
        {
            trace = new HelicoidalTrace(MobileType.Turtle, ShotType.S2, Color.White, this);

            this.angleOffset           = angleOffset;
            angleDecreasingOffsetTimer = Parameter.ProjectileTurtleS2AngleOffsetTimer;
            angleFactor = 1f;

            dProj = new DummyProjectile(mobile, ShotType.S2, Parameter.ProjectileTurtleS2ExplosionRadius, Parameter.ProjectileTurtleS2BaseDamage);

            mass          = Parameter.ProjectileTurtleS2Mass;
            windInfluence = Parameter.ProjectileTurtleS2WindInfluence;
        }
Ejemplo n.º 2
0
        public MageProjectile2(Mage mobile, float angleOffset, Color color)
            : base(mobile, ShotType.S2, 0, 0, canCollide: false)
        {
            trace            = new HelicoidalTrace(MobileType.Mage, ShotType.S2, color, this);
            this.angleOffset = angleOffset;

            mass          = Parameter.ProjectileMageS2Mass;
            windInfluence = Parameter.ProjectileMageS2WindInfluence;

            dProj = new DummyProjectile(mobile, ShotType.S2, Parameter.ProjectileMageS2ExplosionRadius, Parameter.ProjectileMageS2BaseDamage);
            //dProj.IsAbleToRefreshPosition = false;
            //dProj.IsExternallyRefreshingPosition = false;

            traceOffset = new Vector2(0, 15);
        }