Example #1
0
        public Game()
        {
            LoadSettings();

            _gameTurnTime = 50;
            int fps = 60;
            _frame = 1000.0/fps;
            _updateRate = 200;
            _ui = new UI.UI(this, Settings);
            _drawer = ServiceLocator.GetService<IDrawer>();
            ObjectsDictionary = new ObjectDictionary();
            _updateThread = new Thread(StartUpdate);
            _drawThread = new Thread(StartDraw);

            Initialize();

            Run();
        }
Example #2
0
        public Game()
        {
            LoadSettings();

            _gameTurnTime = 50;
            int fps = 60;

            _frame            = 1000.0 / fps;
            _updateRate       = 200;
            _ui               = new UI.UI(this, Settings);
            _drawer           = ServiceLocator.GetService <IDrawer>();
            ObjectsDictionary = new ObjectDictionary();
            _updateThread     = new Thread(StartUpdate);
            _drawThread       = new Thread(StartDraw);

            Initialize();

            Run();
        }