Example #1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
              Content.RootDirectory = "Content";

              graphics.PreferredBackBufferWidth = 800;
              graphics.PreferredBackBufferHeight = 600;
              IsMouseVisible = true;

              mainMenu = new MainMenu(Content, graphics.PreferredBackBufferWidth,
            graphics.PreferredBackBufferHeight);
              characterCreation = new CharacterCreation();

              currentGameState = 0;//change back to 0

              createdCombat = false;
        }
Example #2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
              Content.RootDirectory = "Content";

              graphics.PreferredBackBufferWidth = 800;
              graphics.PreferredBackBufferHeight = 600;
              //IsMouseVisible = true;

              mainMenu = new MainMenu(Content, graphics.PreferredBackBufferWidth,
            graphics.PreferredBackBufferHeight);
              characterCreation = new CharacterCreation();

              currentGameState = 0;//change back to 0

              createdCombat = pausedGame = false;
              message = new MessageBox(Content, graphics.PreferredBackBufferHeight, graphics.PreferredBackBufferWidth);
              messageQueue = new Queue<string>();
              npc_menu = new NPCMenu(Content, graphics.PreferredBackBufferHeight, graphics.PreferredBackBufferWidth);
              keyState = Keyboard.GetState();
              prevKeystate = keyState;
        }
Example #3
0
 private void CreateMainMenu()
 {
     mainMenu = new MainMenu(Content, graphics.PreferredBackBufferWidth,
      graphics.PreferredBackBufferHeight);
 }