Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Esempio n. 1
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            txt1 = Content.Load<Texture2D>(@"Textures\empty");
            txt2 = Content.Load<Texture2D>(@"Textures\Trees");

            // Initialize the BasicEffect
            effect = new BasicEffect(GraphicsDevice);

            test = new Board(this, txt1, txt2);
        }
Esempio n. 2
0
File: Game1.cs Progetto: Arasho/GR
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            czerwonymodel = Content.Load<Texture2D>(@"Models\czerwonaminiatura");
            czarnymodel = Content.Load<Texture2D>(@"Models\czarnaminiatura");
            zoltymodel = Content.Load<Texture2D>(@"Models\zoltaminiatura");
            zielonymodel = Content.Load<Texture2D>(@"Models\zielonaminiatura");
            niebieskimodel = Content.Load<Texture2D>(@"Models\niebieskaminiatura");

            txt1 = Content.Load<Texture2D>(@"Textures\empty");
            txt2 = Content.Load<Texture2D>(@"Textures\Trees");

            menu = new Menu(this);

            // Zaladowanie pustej planszy
            board = new Board(this, txt1, txt2);
            infoBar = new Bar(this);
            results = new Results(this);

            Components.Add(menu);
        }