상속: Microsoft.Xna.Framework.DrawableGameComponent
예제 #1
0
파일: Game1.cs 프로젝트: pat88bytom/GR
        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);
        }
예제 #2
0
파일: Game1.cs 프로젝트: 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);
        }