Exemplo n.º 1
0
 public void BallBrickCollision(EasyGameComponent ball, EasyGameComponent brick)
 {
     brick.Remove();
     EffectGameComponent effect = AddEffect("colorexplosion", brick.DisplayPosition);
     effect.SecondsPerFrame = .05;
     effect.OverlayColor = brick.OverlayColor;
 }
Exemplo n.º 2
0
 public void FireballMonsterCollision(EasyGameComponent fireball, EasyGameComponent monster)
 {
     AddEffect("colorexplosion", monster.DisplayPosition);
     monster.Remove();
     fireball.Remove();
 }
Exemplo n.º 3
0
 public void FireballBrickCollision(EasyGameComponent fireball, EasyGameComponent brick)
 {
     fireball.Remove();
 }
Exemplo n.º 4
0
 public void WizardRubyCollision(EasyGameComponent wizard, EasyGameComponent ruby)
 {
     EffectGameComponent effect = AddEffect("zap", ruby.DisplayPosition);
     display1.Score++;
     ruby.Remove();
     AddRuby();
 }
Exemplo n.º 5
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);
 }