Example #1
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     grid = new Grid(this, 4, 10);
     aimPosition = new Vector3(5.0f * Grid.baseSize, 0.0f, 5.0f * Grid.baseSize);
 }
Example #2
0
        protected Grid grid; //Parent grid,which has to contain: public int width, height; public Block[] blocks;

        #endregion Fields

        #region Constructors

        public Block(Grid grid)
        {
            this.grid = grid;
        }
Example #3
0
 public StraightBlock(Grid grid)
     : base(grid)
 {
     //Nothing to do here lol.
 }
Example #4
0
 public TriBlock(Grid grid)
     : base(grid)
 {
     //...
 }
Example #5
0
 public SquigglyBlock(Grid grid)
     : base(grid)
 {
     //...
 }
Example #6
0
 public SquareBlock(Grid grid)
     : base(grid)
 {
     //...
 }
Example #7
0
 public LBlock(Grid grid)
     : base(grid)
 {
     //...
 }