예제 #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.
            _sb = new SpriteBatch(_graphics.GraphicsDevice);
            //TEST
            _sbtest  = new SpriteBatch(_graphics.GraphicsDevice);
            _fontest = Content.Load <SpriteFont>("Arial");
            // TODO: use this.Content to load your game content here
            _font      = Content.Load <SpriteFont>("Arial");
            _fontsmall = Content.Load <SpriteFont>("ArialS");

            _common  = Content.Load <Texture2D>("common/common");
            _gui     = Content.Load <Texture2D>("common/guis");
            _title   = Content.Load <Texture2D>("common/bg");
            _default = Content.Load <Texture2D>("common/default");
            _loop    = new GameLoop(_font, _fontsmall);

            //TEST

            if (!GameMaps.Initialize())
            {
                Exit();
            }
            if (!GameLoop.InitializeContent(_common, _gui, _title, _default))
            {
                Exit();
            }
        }