public HowToPlay(Game game, SpriteBatch spriteBatch) : base(game) { // TODO: Construct any child components here this.spriteBatch = spriteBatch; Vector2 bgpos = new Vector2(9, 0); HTPbg = new BackGround(game, spriteBatch, game.Content.Load <Texture2D>("images/HTPbg"), bgpos); this.Components.Add(HTPbg); }
public About(Game game, SpriteBatch spriteBatch) : base(game) { // TODO: Construct any child components here this.spriteBatch = spriteBatch; Vector2 bgpos = new Vector2(-9, -10); aboutbg = new BackGround(game, spriteBatch, game.Content.Load <Texture2D>("images/Aboutbg"), bgpos); this.Components.Add(aboutbg); }
public Help(Game game, SpriteBatch spriteBatch) : base(game) { // TODO: Construct any child components here this.spriteBatch = spriteBatch; Vector2 bgpos = new Vector2(-250, 0); bg = new BackGround(game, spriteBatch, game.Content.Load <Texture2D>("images/helpcar"), bgpos); this.Components.Add(bg); }
public StartMenu(Game game, SpriteBatch spriteBatch) : base(game) { // TODO: Construct any child components here this.spriteBatch = spriteBatch; Vector2 bgpos = new Vector2(100, 0); bg = new BackGround(game, spriteBatch, game.Content.Load <Texture2D>("images/titlepic"), bgpos); this.Components.Add(bg); menu = new MenuComponent(game, spriteBatch, game.Content.Load <SpriteFont>("fonts/StandardMenuFont"), game.Content.Load <SpriteFont>("fonts/HiLightedMenuFont"), menuchoices); this.Components.Add(menu); }