Esempio n. 1
0
 public void GoHome()
 {
     Hide();
     State = UfoStates.Waiting;
     X = Scene.MinX - Width;
     Y = 90;
     Speed = 0;
     StopSound("ufo");
     Wait(10, Launch);
 }
Esempio n. 2
0
 public void GoHome()
 {
     Hide();
     State = UfoStates.Waiting;
     X     = Scene.MinX - Width;
     Y     = 90;
     Speed = 0;
     StopSound("ufo");
     Wait(10, Launch);
 }
Esempio n. 3
0
 public void Launch()
 {
     SetCostume("ufo");
     Show();
     GhostEffect = 0;
     Scale = UfoScale;
     X = -100; // Scene.MinX - Width;
     State = UfoStates.Flying;
     Direction = 0;
     Speed = 0.5f;
     PlaySound("ufo", loop: true);
 }
Esempio n. 4
0
 public void Launch()
 {
     SetCostume("ufo");
     Show();
     GhostEffect = 0;
     Scale       = UfoScale;
     X           = -100; // Scene.MinX - Width;
     State       = UfoStates.Flying;
     Direction   = 0;
     Speed       = 0.5f;
     PlaySound("ufo", loop: true);
 }
Esempio n. 5
0
 public void Explode()
 {
     State = UfoStates.Exploding;
     SetCostume("AlienDeath");
     Speed = 0;
     StopSound("ufo");
     PlaySound("UfoDeath");
     Wait(0.5, () =>
     {
         SetCostume("UfoScore");
         Wait(1, GoHome);
     });
 }
Esempio n. 6
0
 public void Explode()
 {
     State = UfoStates.Exploding;
     SetCostume("AlienDeath");
     Speed = 0;
     StopSound("ufo");
     PlaySound("UfoDeath");
     Wait(0.5, () =>
     {
         SetCostume("UfoScore");
         Wait(1, GoHome);
     });
 }