Example #1
0
        //Конструктор
        public Engine(int fieldWidth, int fieldHeight, int squareHeight)
        {
            this.fieldHeight = fieldHeight;
            this.fieldWidth = fieldWidth;

            this.squareHeight = squareHeight;

            plus = new Plus();
            gameMass = new GameMass(fieldWidth,fieldHeight);
            squares = new List<Square>();

            rand = new Random();

            CreateSquareList();
            NewActiveSquare();
        }
Example #2
0
 //Начать новую игру
 public void NewGame()
 {
     gameMass = new GameMass(fieldWidth, fieldHeight);
     //CreateSquareList();
     NewActiveSquare();
     RefreshSquareList();
     isStart = true;
     score = 0;
 }