示例#1
0
 public Main()
 {
     Console.WriteLine("Main init");
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     stateManager = new StateManager(0);
 }
示例#2
0
 public Main()
 {
     Console.WriteLine("Main init: ");
     graphics = new GraphicsDeviceManager(this);
     graphics.PreferredBackBufferWidth   = Properties.SCREEN_WITH;
     graphics.PreferredBackBufferHeight  = Properties.SCREEN_HEIGHT;
     Content.RootDirectory = "Content";
     stateManager = StateManager.getInstance(0);
 }
示例#3
0
        public static StateManager getInstance(int state)
        {
            if (instance == null) { instance = new StateManager(state); }

            return instance;
        }