Beispiel #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();
        }
Beispiel #2
0
 public StatsGUI(ETalisman eTalisman, Creator creator)
 {
     this.eTalisman = eTalisman;
     this.creator = creator;
     input = eTalisman.input;
     selected = Stats.Attributes._BEGIN + 1;
 }