Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }