private void StartGame() { this.score = 0; this.modifier = 100; timerMain.Interval = this.interval; this.totLines = 0; level = 1; grid = new TetrisGrid(gridWidth, gridHeight, scaleX, scaleY); curBlock = grid.CreateNewBlock(RandomBlock(), gridWidth / 2 - 1, 0); nextBlock = new TetrisBlock(RandomBlock(), 12, 12, scaleX, scaleY); timerMain.Start(); }
private void StartGame() { this.score = 0; this.modifier = 100; timerMain.Interval = this.interval; this.totLines = 0; level = 1; grid = new TetrisGrid(gridWidth, gridHeight, scaleX, scaleY); curBlock = grid.CreateNewBlock(RandomBlock(), gridWidth / 2 - 1, 0); nextBlock = new TetrisBlock(RandomBlock(), 12, 12, scaleX, scaleY); timerMain.Start(); }