Ejemplo n.º 1
0
        public GameMain(string[] args)
        {
            Instance = this;

            CommandLineArgs = ToolBox.MergeArguments(args);

            World = new World(new Vector2(0, -9.82f));
            FarseerPhysics.Settings.AllowSleep         = true;
            FarseerPhysics.Settings.ContinuousPhysics  = false;
            FarseerPhysics.Settings.VelocityIterations = 1;
            FarseerPhysics.Settings.PositionIterations = 1;

            Config = new GameSettings();

            SteamManager.Initialize();
            if (GameSettings.SendUserStatistics)
            {
                GameAnalyticsManager.Init();
            }

            GameScreen = new GameScreen();
        }