예제 #1
0
        public virtual void Shoot()
        {
            Bullet bullet = new Bullet(BulletTexture, WorldCoords - new Vector2(Height * -DistanceToNose, Height * -DistanceToNose) * Rotation.Vector, WorldSb);

            bullet.Speed             = Rotation.Vector * 3f;
            bullet.UseCenterAsOrigin = true;
            bullet.Rotation          = Rotation;
            bullet.Damage            = DamagePerShot;

            FlyingBullets.Add(bullet);
        }
예제 #2
0
        public override void Shoot()
        {
            //TODO: change image to torpedo
            Bullet bullet = new Bullet(BulletTexture, WorldCoords - new Vector2(Height * -DistanceToNose, Height * -DistanceToNose) * Rotation.Vector, WorldSb);

            bullet.Speed             = Rotation.Vector * 6f;
            bullet.UseCenterAsOrigin = true;
            bullet.Rotation          = Rotation;
            bullet.Damage            = DamagePerShot;

            FlyingBullets.Add(bullet);
        }