Exemple #1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            testTexture = Content.Load<Texture2D>(@"gfx/1x1");

            // input
            input = new ZXNA.Input.Input(this);

            // menu
            mainMenu = new MainMenu(this);
            mainMenu.open();
            mainMenu.DrawOrder = 1;
            Components.Add(mainMenu);

            // adventure
            adventure = new Adventure(this);
            Components.Add(adventure);

            // pong
            pong = new Pong.Pong(this);
            Components.Add(pong);

            //Services.AddService(typeof(SpriteBatch), spriteBatch);

            base.LoadContent();
        }