示例#1
0
 public GameScreen(GraphicsDeviceManager g, ContentManager c, SpriteFont f) : base(g, c, f)
 {
     //initialize GameDraw
     GameDraw.Initialize(g, c, f);
     GameDraw.drawAdjObjects = true;
     KeyConfig.Initialize();
     StopDrawing = false;
 }
示例#2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            Pokemon.BaseStatsList.initialize();
            font = Content.Load <SpriteFont>("font");
            KeyConfig.Initialize();
            ScreenHandler.Initialize(graphics, Content, font);

            // TODO: use this.Content to load your game content here
        }
示例#3
0
        public GameScreen(GraphicsDeviceManager g, ContentManager c, SpriteFont f) : base(g, c, f)
        {
            //initialize GameDraw
            GameDraw.Initialize(g, c, f);
            GameDraw.drawAdjObjects = true;
            KeyConfig.Initialize();
            StopDrawing = false;
            StartNewGame();

            List <string> optionList = new List <string>();

            optionList.Add("Pokedex");
            optionList.Add(player.name);
            optionList.Add("Pokemon");
            optionList.Add("Save");
            optionList.Add("Bag");
            optionList.Add("Options");
            menu   = new MenuWindow(MENU_POS, optionList, MENU_PADDING);
            inMenu = false;
            Name   = "GameScreen";
        }