public bool Run() { CSnake.Move(); CGame.BuildGameboard(); CGame.PrintGameBoard(); return(true); }
public void setProlog() { this.MaximumSize = new Size(850, 510); this.Cursor = new Cursor(Resources.cursorPixel.GetHicon()); flagPoint = false; snakeSpeed = 4; userDirection = Directions.Right; points = 0; snakeHead = new CSnake { Left = 100, Top = 200 }; snakeHead.Update(snakeHead.Left++, snakeHead.Top++); snakeBody = new List <CSnake>(); g = this.CreateGraphics(); setFoods(); GameLoop.Interval = 20; GameLoop.Start(); }