예제 #1
0
        public Projectile(Weapon Source)
        {
            HardCollisionWithTerrain = true;
            CollideWithWormsCheck = true;
            SourceWeapon = Source.Data;
            SourceWorm = Source.Carrier;

            RecentlyDamagedTargets.Add(Source.Carrier);
            RecentlyCollided.Add(Source.Carrier);
        }
예제 #2
0
        public void CreateWeaponSwapTag(Weapon CurrentWeapon)
        {
            // Cleanup
            if(WeaponChangeTag != null)
            {
                WeaponChangeTag.Duration = -1;
            }

            WeaponChangeTag = new TextTag(ControlledWorm.Level, CurrentWeapon.Data.Name, ResourceManager.Arial, ControlledWorm.Position + new Vector2(0, -30), Color.Orange, 2);

            ControlledWorm.Level.TextTags.Add(WeaponChangeTag);
        }