示例#1
0
 public Game()
 {
     snakeController = new SnakeController();
     viewController  = new ViewController();
     stopWatch       = new Stopwatch();
     UpdatePostion();
 }
示例#2
0
        static void Init()
        {
            update.Elapsed += Update;
            update.Enabled  = true;

            playing = true;
            Board.Init();
            SnakeController.Init();
            FlyMachine.Init();
            ScoreBoard.Init();
            InputManager.StartKeyboardListener();
        }