Exemplo n.º 1
0
Arquivo: Game.cs Projeto: Iseke/Mylabs
        public Game()
        {
            speed   = 200;
            isalive = true;
            worm    = new Worm(new Point {
                X = 13, Y = 13
            }, '■', ConsoleColor.Blue);
            food = new Food(new Point {
                X = 11, Y = 11
            }, ConsoleColor.Green, 'o');
            wall = new Wall(null, ConsoleColor.Red, 'Ô');

            gameLevel = GameLevel.zero;
            wall.LoadLevel(gameLevel);
        }
Exemplo n.º 2
0
Arquivo: Game.cs Projeto: Iseke/Mylabs
 public void Deserial()
 {
     wall = wall.Load() as Wall;
     food = food.Load() as Food;
     worm = worm.Load() as Worm;
 }