Example #1
0
        public void Initialize()
        {
            // Events
            Global.send_metrics_to_server        += Global_SendMetricsToServer;
            Global.check_for_updates_from_server += Global_CheckForUpdatesFromServer;
            Global.set_update_uri(UpdateChecker.GameDownloadUrl);

#if WINDOWS || MONOMAC
            Global.load_config = true;
#endif

#if DEBUG && !MONOGAME
            TactileLibrary.EventInput.Initialize(Game.Window);
            TactileLibrary.EventInput.CharEntered += new TactileLibrary.EventArg.CharEnteredHandler(EventInput_CharEntered);
#endif

            // Set initial scene
#if DEBUG
            if (!string.IsNullOrEmpty(MapEditorMap))
            {
                Global.scene_change("Scene_Map_Unit_Editor");
            }
            else
#endif
            Global.scene = new SceneInitialLoad();
        }