/// <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); // TODO: use this.Content to load your game content here //GSoundManager.LoadContent(Content); GSpriteFactory.getInstance().Init(Content); GStateManager.getInstance().Content = Content; GStateManager.getInstance().AddState(new GIntroState(eGStateGame.INTRO)); }
public override void InitStateGame(Microsoft.Xna.Framework.Content.ContentManager Content) { square = new GSquare(eGMyObject.RED_SQUARE, eGStatus.ALIVE, new Vector2(0, 0), new GSprite(GSpriteFactory.getInstance().getSprite(eGSprite.RED_SQUARE))); base.InitStateGame(Content); }