new levels

This commit is contained in:
Andros Fenollosa 2014-04-15 17:14:19 +02:00
parent a011c1d4ea
commit a16cfa0e1d
4 changed files with 10 additions and 7 deletions

View File

@ -223,7 +223,7 @@ morado: #5E5D7D
}
#nivel {
position: absolute;
width: 150px;
width: 180px;
height: 50px;
bottom: 0;
left: 0;

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -7,11 +7,12 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="js/vendor/jquery-1.11.0.min.js"></script>
<link rel="icon" type="image/png" href="icon.png" />
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/fonts.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
<script src="js/fastclick.js" type="application/javascript"></script>
</head>

View File

@ -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();
});