Ejemplo n.º 1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            highScoreScreen = new HighScoreScreen(this.Content, new EventHandler(afterEvent));
            playScreen      = new Playing(this.Content, new EventHandler(afterEvent), GraphicsDevice);
            aboutScreen     = new About(this.Content, new EventHandler(afterEvent));

            screen = null;

            backgroundImage     = Content.Load <Texture2D>(@"picture/keliling indonesia");
            startButton         = Content.Load <Texture2D>(@"picture/button main");
            startButtonPosition = new Vector2(350, 260);

            highScoreButton         = Content.Load <Texture2D>(@"picture/button nilai tertinggi");
            highScoreButtonPosition = new Vector2(305, 310);

            aboutButton         = Content.Load <Texture2D>(@"picture/button tentang");
            aboutButtonPosition = new Vector2(335, 360);

            puzzleFont = Content.Load <Texture2D>(@"picture/tulisan puzzle");
            // TODO: use this.Content to load your game content here
        }
Ejemplo n.º 2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            highScoreScreen = new HighScoreScreen(this.Content, new EventHandler(afterEvent));
            playScreen = new Playing(this.Content, new EventHandler(afterEvent), GraphicsDevice);
            aboutScreen = new About(this.Content, new EventHandler(afterEvent));

            screen = null;

            backgroundImage = Content.Load<Texture2D>(@"picture/keliling indonesia");
            startButton = Content.Load<Texture2D>(@"picture/button main");
            startButtonPosition = new Vector2(350, 260);

            highScoreButton = Content.Load<Texture2D>(@"picture/button nilai tertinggi");
            highScoreButtonPosition = new Vector2(305, 310);

            aboutButton = Content.Load<Texture2D>(@"picture/button tentang");
            aboutButtonPosition = new Vector2(335, 360);

            puzzleFont = Content.Load<Texture2D>(@"picture/tulisan puzzle");
            // TODO: use this.Content to load your game content here
        }