protected override void LoadContent()
 {
     spriteBatch    = new SpriteBatch(GraphicsDevice);
     gameoverScene  = new cls(Vector2.Zero, Game.Content.Load <Texture2D>(@"background\gameoverScene"));
     sound_gameover = Game.Content.Load <SoundEffect>(@"content\sound\gameover");
     base.LoadContent();
 }
Exemple #2
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     bkgExit     = new cls(Vector2.Zero, Game.Content.Load <Texture2D>(@"background\bkgExit"));
     yes         = new cls(new Vector2(450, 400), Game.Content.Load <Texture2D>(@"Pictures\yes"));
     no          = new cls(new Vector2(650, 400), Game.Content.Load <Texture2D>(@"Pictures\no"));
     no.ColorA   = 100;
 }
Exemple #3
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            background  = new cls(Vector2.Zero, Game.Content.Load <Texture2D>(@"Pictures\bkg"));


            array[0] = new cls(new Vector2(Game.Window.ClientBounds.Width / 2 - 270, Game.Window.ClientBounds.Height / 2 - 75), Game.Content.Load <Texture2D>(@"Pictures\newgame"));
            array[1] = new cls(new Vector2(Game.Window.ClientBounds.Width / 2 - 350, Game.Window.ClientBounds.Height / 2 + 25), Game.Content.Load <Texture2D>(@"Pictures\introduction"));
            array[2] = new cls(new Vector2(Game.Window.ClientBounds.Width / 2 - 280, Game.Window.ClientBounds.Height / 2 + 125), Game.Content.Load <Texture2D>(@"Pictures\help"));
            array[3] = new cls(new Vector2(Game.Window.ClientBounds.Width / 2 - 280, Game.Window.ClientBounds.Height / 2 + 225), Game.Content.Load <Texture2D>(@"Pictures\exit"));
            //than cay
            array[4] = new cls(new Vector2(0, 350), Game.Content.Load <Texture2D>(@"Animation\left"));
            array[5] = new cls(new Vector2(1320, 0), Game.Content.Load <Texture2D>(@"Animation\right"));


            Apple1 = new cls(new Vector2(220, 185), Game.Content.Load <Texture2D>(@"Animation\apple"));

            tree1    = new cls(new Vector2(-75, 125), Game.Content.Load <Texture2D>(@"Animation\menuTree1"));
            tree[0]  = new cls(new Vector2(Game.Window.ClientBounds.Width - 600, 100), Game.Content.Load <Texture2D>(@"Animation\menuTree2"));
            tree[1]  = new cls(new Vector2(Game.Window.ClientBounds.Width - 350, Game.Window.ClientBounds.Height - 150), Game.Content.Load <Texture2D>(@"Animation\menuTree3"));
            tree[2]  = new cls(new Vector2(-50, Game.Window.ClientBounds.Height - 180), Game.Content.Load <Texture2D>(@"Animation\menuTree4"));
            cloud[0] = new cls(new Vector2(0, 0), Game.Content.Load <Texture2D>(@"Animation\cloud1"));
            cloud[1] = new cls(new Vector2(1200, 50), Game.Content.Load <Texture2D>(@"Animation\cloud2"));

            soundMenu       = Game.Content.Load <SoundEffect>(@"Sound\menu_click");
            musicBackground = Game.Content.Load <Song>(@"Music\classified");

            if (MediaPlayer.State == MediaState.Stopped)
            {
                MediaPlayer.Play(musicBackground);
                MediaPlayer.Volume      = 0.3f;
                MediaPlayer.IsRepeating = true;
            }

            base.LoadContent();
        }
Exemple #4
0
 protected override void LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     bkgHelp     = new cls(Vector2.Zero, Game.Content.Load <Texture2D>(@"background\bkgHelp"));
     base.LoadContent();
 }
Exemple #5
0
 protected override void  LoadContent()
 {
     spriteBatch = new SpriteBatch(GraphicsDevice);
     intro       = new cls(Vector2.Zero, Game.Content.Load <Texture2D>(@"bacgroundMenu\background_02"));
     base.LoadContent();
 }