public override void spawnClone(Vector2 position, Vector2 direction)
        {
            //AnimatedSprite newSprite = new AnimatedSprite(this.sprite.name, position, new AnimationManager(this.sprite.animation.objectTexture.Copy(), this.sprite.animation.defaultDrawFrame), this.color);
            SSC_FireProjectile basic = new SSC_FireProjectile(this.owner, new AnimatedSprite("FireProjectile", position, new AnimationManager(SeasideScramble.self.textureUtils.getExtendedTexture("Projectiles", "Fire"), new Animation(0, 0, 18, 16)), this.color), new Rectangle((int)this.position.X, (int)this.position.Y, this.hitBox.Width, this.hitBox.Height), position, direction, this.speed, this.maxLifeSpan, this.scale, this.damage, this.effect);

            SeasideScramble.self.entities.projectiles.addProjectile(basic);
        }
Esempio n. 2
0
        public SSCProjectile getFireProjectile(object Owner, Vector2 Position, Vector2 Direction, float Speed, Rectangle HitBox, Color Color, float Scale, int Damage, SSCStatusEffects.SE_Burn BurnEffect, int LifeSpan = 150)
        {
            SSC_FireProjectile basic = new SSC_FireProjectile(Owner, new AnimatedSprite("FireProjectile", Position, new AnimationManager(SeasideScramble.self.textureUtils.getExtendedTexture("Projectiles", "Fire"), new Animation(0, 0, 4, 4)), Color), new Rectangle(HitBox.X, HitBox.Y, HitBox.Width, HitBox.Height), Position, Direction, Speed, LifeSpan, Scale, Damage, BurnEffect);

            return(basic);
        }