Exemplo n.º 1
0
 public Engine()
 {
     this.pg = new Playground(getMaxX(),getMaxY(),blocksize);
     this.trash = new LinkedList<Block>();
     this.activeFigure = genFigure();
     this.preparedFigure = genFigure();
     this.pg.addFigure(activeFigure);
 }
Exemplo n.º 2
0
 internal void reset()
 {
     points = 0;
     time = 0;
     lvl = 10;
     end = false;
     hide = true;
     this.pg = new Playground(getMaxX(), getMaxY(), blocksize);
     this.trash = new LinkedList<Block>();
     this.activeFigure = genFigure();
     this.preparedFigure = genFigure();
     this.pg.addFigure(activeFigure);
 }