Example #1
0
 public int Win()
 {
     if (win == 1)
     {
         Stop();
         TimeControl.Stop();
         return(1);
     }
     return(0);
 }
Example #2
0
 public void Restart()
 {
     LoadMap();
     Labels[0].Text = "Gold: 0";
     Labels[1].Text = "Keys: 0";
     Labels[2].Text = "Steps: 0";
     Labels[3].Text = "Points: 0";
     win            = 0;
     DrawMap();
     p1.Restart();
     box[FinishX, FinishY].BackColor = Color.Black;
     TimeControl.Restart();
 }
Example #3
0
 public window()
 {
     InitializeComponent();
     LoginPanel.Visible    = true;
     loginTB.Enabled       = true;
     passwordTB.Enabled    = true;
     MainMenu.Visible      = false;
     HelpPanel.Visible     = false;
     GamePanel.Visible     = false;
     SettingsPanel.Visible = false;
     Soundboard.Load();
     Auth.Load();
     Leaderboard.Load(LeaderboardPanel);
     playground = new Map(GamePanel, new Label[] { goldLabel, keysLabel, stepsLabel, pointsLabel });
     GameSettings.Load();
     TimeControl.Start(timeLabel);
     playground.Restart();
     KeyLog.Load(this);
 }