Пример #1
0
        public static void Initialize()
        {
            if (_init) { return; }
            //***********************
            //Initialize Stuff here:
            Fonts.LoadFont("std_small");
            _debugger = new Debug();

            _ihObject = new Inputhandler();
            _textureHandlerObject = new Textures();
            _timeHandlerObject = new Time();
            _sounds = new Sounds();
            Fonts.LoadFont("mainfont");
            Fonts.LoadFont("std");

            _firstScreen = new Game.Aleks.Mainmenu();

            //Don't initialize stuff here:
            //***********************

            BindKeys();
            _init = true;
        }
Пример #2
0
 public Inputhandler()
 {
     if (mainIh != null) { throw new NullReferenceException("Inputhandler object created twice"); }
     DCSG.OnUpdate += new DCSG.XNAHookEvent(Update);
     mainIh = this;
 }