/// <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.
            base.LoadContent();
            new TextSpriteFlashingEffectOverTime(1, _textSprite);

            TextSpriteDrawer.AddTextSprite(_textSprite);
            TextSpriteUpdater.AddToUpdate(_textSprite);
            // TODO: use this.Content to load your game content here
        }
Beispiel #2
0
 protected GameModel()
 {
     Graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     SpriteDrawer          = new SpriteDrawer(this);
     SpriteUpdater         = new SpriteUpdater(this);
     SpriteLoader          = new SpriteLoader(this, Content, SpriteDrawer);
     InputsManager         = new InputsManager(this);
     TextSpriteDrawer      = new TextSpriteDrawer(this);
     TextSpriteUpdater     = new TextSpriteUpdater(this);
     TextSpriteLoader      = new TextSpriteLoader(this, Content, TextSpriteDrawer);
     GeneratorUpdater      = new GeneratorUpdater(this);
     CameraUpdater         = new CameraUpdater(this);
     Cursor            = new Cursor("Cursor2");
     ShapeDrawer       = new ShapeDrawer(this);
     _currentGameState = GameStateType.Game;
 }