/// <summary> /// 开始新游戏 /// </summary> public static void StartNewGame() { AllShapes.AutoDown(false); if (State != GameStates.Stoped && MessageBox.Show("\n 确实要重新开始游戏吗? \n ", "重新开始", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) != DialogResult.Yes) { if (State != GameStates.Paused) { AllShapes.AutoDown(true); } return; } Ini(); CanOp = true; State = GameStates.Playing; AllShapes.MakeNewShape(); AllShapes.AutoDown(true); ClassMain.formMain.labelInfo.Text = "Playing...."; if (Globals.IsPlayBackMusic) { Sound.PlayMusic(Globals.PathOfBackMusic, true); } }
/// <summary> /// 开始游戏,但不还原数据(要还原数据并开始新游戏,请使用StartNewGame()) /// </summary> public static void Start() { Globals.BasePoint = new GirdPoint(0, 0); CanOp = true; State = GameStates.Playing; AllShapes.MakeNewShape(); AllShapes.AutoDown(true); ClassMain.formMain.labelInfo.Text = "Playing...."; if (Globals.IsPlayBackMusic) { Sound.PlayMusic(Globals.PathOfBackMusic, true); } }