Example #1
0
 private void Restart()
 {
     pointSystem.Points         = 0;
     pointSystem.KillMultiplier = 1;
     player.Position            = new Vector2();
     bullets.Clear();
     enemies.Clear();
     floor.ChangeColor(1);
     graph = new Graph(22, 22, 1);
     graph.AddBlocade(crate, crateMatrix[0]);
     graph.AddBlocade(crate, crateMatrix[1]);
     graph.AddBlocade(crate, crateMatrix[2]);
     player.graph = graph;
     enemies.Add(new Enemy(graph)
     {
         Position = new Vector2(-10, 10)
     });
     gameOver      = false;
     level         = 1;
     Enemy.Level   = 1;
     enemyCount    = 0;
     maxEnemyCount = 4;
     this.key      = true;
 }