Esempio n. 1
0
 public GameDebug()
 {
     InitializeComponent();
     grid = GridConverter.DeserializeGrid(File.ReadAllText(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"PuzzleGame\level.json")));
     LoadPlayer();
     UpdateGridTiles();
 }
Esempio n. 2
0
        private void startLevel(object sender, RoutedEventArgs e)
        {
            Button btn = (Button)sender;

            new GameDebug(GridConverter.DeserializeGrid(WebApi.GetLevelByName(btn.Content.ToString()))).Show();
        }
Esempio n. 3
0
 public Game(string name)
 {
     grid = GridConverter.DeserializeGrid(WebApi.GetLevelByName(name));
     LoadPlayer();
     CountPlates();
 }
Esempio n. 4
0
 public Game()
 {
     grid = GridConverter.DeserializeGrid(File.ReadAllText(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"PuzzleGame\level.json")));
     LoadPlayer();
     CountPlates();
 }