Example #1
0
 public void ShowGameOver()
 {
     sign = new UICell(DataHandler.UIObjectsTextureMap[UIObjectType.GameOver], "");
     sign.setSizeRelative(0.4f, Orientation.Portrait);
     sign.Position = new Vector2((Screen.ViewWidth - sign.Width) / 2, Screen.ViewHeight / 2);
     gameover      = true;
     Manager.Game.IsMouseVisible = true;
     world.ActiveCam.LockMouse   = false;
 }
Example #2
0
 public void ShowYouWon()
 {
     SoundManager.PlaySound(DataHandler.Sounds[SoundType.Flyaway], SoundCategory.SFX);
     sign = new UICell(DataHandler.UIObjectsTextureMap[UIObjectType.YouWon], "");
     sign.setSizeRelative(0.4f, Orientation.Portrait);
     sign.Position = new Vector2((Screen.ViewWidth - sign.Width) / 2, Screen.ViewHeight / 2);
     won           = true;
     Manager.Game.IsMouseVisible = true;
     world.Destroy(player);
     esc.Path = new NodedPath(new Vector3[]
     {
         esc.Position + new Vector3(10000, 200, 10000),
         esc.Position + new Vector3(0, 200, 0),
         esc.Position
     });
     NPCCoordinator.GetInstance().Register(esc);
     world.ActiveCam.LockMouse = false;
 }
Example #3
0
 public void ShowYouWon()
 {
     SoundManager.PlaySound(DataHandler.Sounds[SoundType.Flyaway], SoundCategory.SFX);
     sign = new UICell(DataHandler.UIObjectsTextureMap[UIObjectType.YouWon], "");
     sign.setSizeRelative(0.4f, Orientation.Portrait);
     sign.Position = new Vector2((Screen.ViewWidth - sign.Width) / 2, Screen.ViewHeight / 2);
     won = true;
     Manager.Game.IsMouseVisible = true;
     world.Destroy(player);
     esc.Path = new NodedPath(new Vector3[]
     {
         esc.Position+ new Vector3(10000,200,10000),
         esc.Position + new Vector3(0,200,0),
         esc.Position
     });
     NPCCoordinator.GetInstance().Register(esc);
     world.ActiveCam.LockMouse = false;
 }
Example #4
0
 public void ShowGameOver()
 {
     sign = new UICell(DataHandler.UIObjectsTextureMap[UIObjectType.GameOver], "");
     sign.setSizeRelative(0.4f, Orientation.Portrait);
     sign.Position = new Vector2((Screen.ViewWidth - sign.Width) / 2, Screen.ViewHeight / 2);
     gameover = true;
     Manager.Game.IsMouseVisible = true;
     world.ActiveCam.LockMouse = false;
 }