예제 #1
0
파일: Game1.cs 프로젝트: dawidvd/Game-1
 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;
 }