Ejemplo n.º 1
0
        public void WizardMonsterCollision(EasyGameComponent wizard, EasyGameComponent monster)
        {
            wizard.Remove();
            AddEffect("colorexplosion", wizard.DisplayPosition);
            String     message    = RandomHelper.PickOne("OUCH", "DEAD", "RIP", "BYE");
            TextEffect textEffect = AddTextEffect("segoe", message, wizard.DisplayPosition, Color.Red);

            textEffect.SecondsToLive = 1;
            textEffect.MakeFlashingText(Color.WhiteSmoke, .05);
            AddTimedEvent(3, AddWizard1, 1);
        }