Exemplo n.º 1
0
 public Block(int id = 0, Field field = null)
 {
     this.Id   = id;
     this.Data = Blocks[id].Clone() as int[,];
     if (field != null)
     {
         this.X = -2 + (field.W / 2);
         this.Y = -2;
     }
 }
Exemplo n.º 2
0
 public TetrisViewModel()
 {
     rand = new Random();
     field = new Field();
     block = null;
 }