Beispiel #1
0
        public void Load()
        {
            worm.LinkToGame(this);

            worm = new Worm(new Point {
                x = 10, y = 10
            },
                            ConsoleColor.Green, '■');
            food = new Food(new Point {
                x = r.Next(0, 34), y = r.Next(0, 34)
            },
                            ConsoleColor.Red, '$');
            wall = new Wall(null, ConsoleColor.White, '#');
            // food.Generate();
            // worm.Generate();
            // wall.Generate();
            worm.Draw();
            wall.Draw();
            food.Draw();
        }