private static async Task ProcessBoardState() { TheBoard.CheckCollisions(); var front = TheBoard.GetPlayerFront(); switch (CurrentDirection) { case PlayerDirection.Up: front.Y -= 1; break; case PlayerDirection.Down: front.Y += 1; break; case PlayerDirection.Left: front.X -= 1; break; case PlayerDirection.Right: front.X += 1; break; } TheBoard.MovePlayer(front); TheBoard.Refresh(); }
public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); startLogo = new StartLogo(); startLogo.Show(); Board mainForm = new Board(); mainForm.Refresh(); Application.Run(mainForm); }