Beispiel #1
0
        protected override void Initialize()
        {
            tiledBackground = new TiledBackground(this, 10, 25);
            tiledBackground.DrawOrder = 2;
            Components.Add(tiledBackground);

            gameGui = new InGameGui(this, tiledBackground);
            gameGui.DrawOrder = 1;
            Components.Add(gameGui);

            IsMouseVisible = true;

            base.Initialize();
        }
Beispiel #2
0
 public InGameGui(Game game, TiledBackground tiledBackground)
     : base(game)
 {
     this.tiledBackground = tiledBackground;
     spriteBatch = new SpriteBatch(game.GraphicsDevice);
 }