if (millis()-t1>=score.vel){
t1=millis();
if (game.validMove("DOWN")){
piece.move("DOWN");
}
else{
game.saveBoard();
score.linesUp(board.checkLines());
piece.restart(int(random(0,7 )));
}
}
}
else{
fill(255,0,0);
textSize(70);
text("Game Over",50,250);
textSize(30);
text("Presione R para reiniciar",50,320);
}
};
No hay comentarios:
Publicar un comentario