Beispiel #1
0
 public void CreateObjects()
 {
     snake = new Snake();
     walls = new Walls();
     food  = new Food();
     walls.GenerateWalls(level);
     food.FoodGenerate();
 }
Beispiel #2
0
 public Game()
 {
     snake = new Snake();
     walls = new Walls();
     food  = new Food();
     walls.GenerateWalls();
     food.FoodGenerate();
 }
Beispiel #3
0
 public void GameInit()
 {
     Console.CursorVisible = false;
     Console.Clear();
     snake.Draw();
     walls.Draw();
     food.FoodGenerate();
     food.Draw();
 }