예제 #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;
     }
 }
예제 #2
0
 public TetrisViewModel()
 {
     rand = new Random();
     field = new Field();
     block = null;
 }