Esempio n. 1
0
        protected override void LoadContent()
        {
            //loading all assets from the MonoGame pipeline tool
            _spriteBatch = new SpriteBatch(GraphicsDevice);
            SpriteFont gw2Font              = GW2_FONT = Content.Load <SpriteFont>("Fonts/GW2Font");
            SpriteFont defaultFont          = DEFAULT_FONT = Content.Load <SpriteFont>("Fonts/arial");
            SpriteFont gw2FontLarge         = GW2_FONT_LARGE = Content.Load <SpriteFont>("Fonts/GW2FontLarge");
            SpriteFont defaultBold          = DEFAULT_FONT_BOLD = Content.Load <SpriteFont>("Fonts/arialBold");
            Texture2D  baseCharacterTexture = Content.Load <Texture2D>("Images/Characters/base");
            Texture2D  enemyTextures        = Content.Load <Texture2D>("Images/Characters/enemies");

            DEFAULT_TEXTURE = new Texture2D(GraphicsDevice, 1, 1);
            DEFAULT_TEXTURE.SetData(new Color[] { Color.White });

            Menu.Initialise(Content);
            CharacterSelect.Initialise(Content);
            RegisterAccount.Initialise(Content);
            CharacterCreate.Initialise(Content);
            GameScence.Initialise(Content);
        }