This commit is contained in:
DonRenando 2015-03-23 15:25:03 +01:00
parent 0b6bfb5854
commit e3b520ab12
4 changed files with 9 additions and 5 deletions

View File

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

View File

@ -1,6 +1,6 @@
var bits=120; // how many bits
var bits=60; // how many bits
var speed=33; // how fast - smaller is faster
var bangs=15; // how many can be launched simultaneously (note that using too many can slow the script down)
var bangs=5; // how many can be launched simultaneously (note that using too many can slow the script down)
var colours=new Array("#03f", "#f03", "#0e0", "#93f", "#0cf", "#f93", "#f0c");
// blue red green purple cyan orange pink

View File

@ -373,6 +373,7 @@ Memory.prototype._winGame = function(levelNode, nbPartie, nbcase) {
else if (this.options.onGameEnd() === false) {
this._clearGame();
firework();
//firework2();
if(levelNode == 1){this.gameMessages.innerHTML = '<img style="height: 270px;" src="/imgs/trophees/bronze.png"><br>\
<button id="mg__onend--restart" class="mg__button"><span class="icon-spinner11"></span></button>';}

View File

@ -21,6 +21,9 @@
@section('page-scripts')
<script src="/js/firework.js"></script>
<!--<script src="/js/fire-work.js"></script>-->
<script src="/js/memory.js"></script>
<script>