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; }
/// <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 }
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"; }