diff --git a/css/main.css b/css/main.css index 4231125..7cbb4a0 100644 --- a/css/main.css +++ b/css/main.css @@ -223,7 +223,7 @@ morado: #5E5D7D } #nivel { position: absolute; - width: 150px; + width: 180px; height: 50px; bottom: 0; left: 0; diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..37861ac Binary files /dev/null and b/icon.png differ diff --git a/index.html b/index.html index 6c0c60b..384866a 100644 --- a/index.html +++ b/index.html @@ -7,11 +7,12 @@ - + - + + diff --git a/js/metodo.js b/js/metodo.js index 11d2b91..9c82cf5 100644 --- a/js/metodo.js +++ b/js/metodo.js @@ -3,6 +3,7 @@ var iNumBarras = 5; var iInterNewBar = 5; var iContBarPuls = 0; var iTiemCaidaBarr = 5000; +var iTiemMovCuadro = iTiemCaidaBarr; var iTiemSubirBarr = 500; var iTiemDesapaCuadro = 2000; var $botonEmpezar = $('#botonEmpezar'); @@ -138,17 +139,18 @@ var generarNivel = function() { break; case 4: iTiem = 40; - iToques = 40; + iToques = 35; iInterNewBar = 2; break; case 5: iTiem = 30; - iToques = 20; + iToques = 18; iInterNewBar = 4; break; default: iTiem = 30; - iToques = 25 - iNivel; + iToques = 45 - iNivel; + iTiemMovCuadro = iTiemCaidaBarr + (iNivel * 100); iInterNewBar = 1; break; } @@ -275,7 +277,7 @@ var reiniciarBarra = function($inBarra) { var moverCuadro = function() { $cuadro.animate({ left: iAnchura - }, iTiemCaidaBarr, 'linear', function() { + }, iTiemMovCuadro, 'linear', function() { $cuadro.css('left', '-25%'); moverCuadro(); });