This commit is contained in:
alexandre-pereira 2015-03-22 16:49:58 +01:00
parent 018acc66f9
commit 0d4894d709
4 changed files with 15 additions and 10 deletions

View File

@ -3,7 +3,10 @@
margin: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
}
body {
font-family: 'Oswald', sans-serif;

View File

@ -247,8 +247,10 @@ Rocket.prototype.render = function(c) {
};
document.body.appendChild(canvas);
canvas.width = SCREEN_WIDTH;
canvas.height = SCREEN_HEIGHT;
setInterval(launch, 800);
setInterval(loop, 1000 / 50);
// init
document.body.appendChild(canvas);
canvas.width = SCREEN_WIDTH;
canvas.height = SCREEN_HEIGHT;
setInterval(launch, 800);
setInterval(loop, 1000 / 50);
});

View File

@ -30,8 +30,9 @@
cards2.push(
{
id : '{{$o->id}}',
img : 'http://www.augustins.org/documents/10180/156407/{{ $o->image}}'}
);
img : 'http://www.augustins.org/documents/10180/156407/{{ $o->image}}'
}
);
@endforeach
var myMem = new Memory({

View File

@ -117,7 +117,6 @@
this.physics.startSystem(Phaser.Physics.ARCADE);
createPiecesFor(1);
drawGrid(1);
dateDebut = new Date();
}
function changePage() {
@ -244,7 +243,7 @@
if (r.readyState != 4 || r.status != 200) return;
setTimeout(function(){
location.href = "{{URL::to('puzzle/jouer')}}" + "/" + trophy;
}, 3000);
}, 6000);
};
r.send();