ferfer
This commit is contained in:
parent
3356492f68
commit
19ae2e00de
@ -18,7 +18,7 @@
|
|||||||
//} else return h * (x * ratioImage)/w;
|
//} else return h * (x * ratioImage)/w;
|
||||||
}
|
}
|
||||||
function preload () {
|
function preload () {
|
||||||
document.getElementById("Chargement").innerHTML = "";
|
document.getElementById("Chargement").innerHTML = ""; //on efface
|
||||||
game.load.spritesheet('balls', '{{ URL::to('imgs/puzzle/balls.png') }}', 17, 17);
|
game.load.spritesheet('balls', '{{ URL::to('imgs/puzzle/balls.png') }}', 17, 17);
|
||||||
game.load.image('trophy3', '{{ URL::to('imgs/trophees/or.png') }}');
|
game.load.image('trophy3', '{{ URL::to('imgs/trophees/or.png') }}');
|
||||||
game.load.image('trophy2', '{{ URL::to('imgs/trophees/argent.png') }}');
|
game.load.image('trophy2', '{{ URL::to('imgs/trophees/argent.png') }}');
|
||||||
@ -30,7 +30,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function nextPuzzle() {
|
function nextPuzzle() {
|
||||||
|
|
||||||
currentPlayed++;
|
currentPlayed++;
|
||||||
pieces.destroy(true);
|
pieces.destroy(true);
|
||||||
createPiecesFor(currentPlayed);
|
createPiecesFor(currentPlayed);
|
||||||
|
Reference in New Issue
Block a user