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

            // 64x64 size tex
            Cross = Content.Load<Texture2D>("ttt-cross");
            Circle = Content.Load<Texture2D>("ttt-circle");

            Board = new Grid(this, graphics, spriteBatch, gdata);
            Board.updateGrid(3, 3, 600, 600);
        }
예제 #2
0
 public Maze2D(Game game, Grid _grid, Texture2D _texture)
 {
     this.game = game;
     grid = _grid;
     texture = _texture;
 }
예제 #3
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

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

            Ingrid = new Grid(this, graphics, spriteBatch, g_data);

            osdfont = Content.Load<SpriteFont>("osd");
        }
예제 #4
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            osdfont = Content.Load<SpriteFont>("osd");

            gdata.offsetx = 100;
            gdata.offsety = 80;
            gdata.gridthicknessH = 1;
            gdata.gridthicknessV = 1;
            gdata.tilesizeH = 10;
            gdata.tilesizeV = 10;

            Ingrid = new Grid(this, graphics, spriteBatch, gdata);

            dmaze = new Maze2D(this, Ingrid, Ingrid.texture);
        }