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(); }
public InGameGui(Game game, TiledBackground tiledBackground) : base(game) { this.tiledBackground = tiledBackground; spriteBatch = new SpriteBatch(game.GraphicsDevice); }