예제 #1
0
파일: Program.cs 프로젝트: ssashkaa01/snake
 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();
        }