/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (TetrisGame game = new TetrisGame()) { game.Run(); } }
public GameLogic(GameTime value, TetrisGame game) { currentBlock = TetrisBlock.generateBlock(); nextBlock = TetrisBlock.generateBlock(); this.timeOfBeginning = value; beginTime = value.TotalGameTime.Seconds + value.TotalGameTime.Milliseconds/1000.0f; timeSinceBeginning = 0; this.myGame = game; GameLogic.level = 1; GameLogic.score = 0; GameLogic.gameOver = false; }