fire
This commit is contained in:
parent
0b6bfb5854
commit
e3b520ab12
@ -248,9 +248,9 @@ Rocket.prototype.render = function(c) {
|
|||||||
|
|
||||||
|
|
||||||
// init
|
// init
|
||||||
document.body.appendChild(canvas);
|
function firework2()
|
||||||
|
{ document.body.appendChild(canvas);
|
||||||
canvas.width = SCREEN_WIDTH;
|
canvas.width = SCREEN_WIDTH;
|
||||||
canvas.height = SCREEN_HEIGHT;
|
canvas.height = SCREEN_HEIGHT;
|
||||||
setInterval(launch, 800);
|
setInterval(launch, 800);
|
||||||
setInterval(loop, 1000 / 50);
|
setInterval(loop, 1000 / 50);}
|
||||||
});
|
|
||||||
|
@ -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 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");
|
var colours=new Array("#03f", "#f03", "#0e0", "#93f", "#0cf", "#f93", "#f0c");
|
||||||
// blue red green purple cyan orange pink
|
// blue red green purple cyan orange pink
|
||||||
|
|
||||||
|
@ -373,6 +373,7 @@ Memory.prototype._winGame = function(levelNode, nbPartie, nbcase) {
|
|||||||
else if (this.options.onGameEnd() === false) {
|
else if (this.options.onGameEnd() === false) {
|
||||||
this._clearGame();
|
this._clearGame();
|
||||||
firework();
|
firework();
|
||||||
|
//firework2();
|
||||||
|
|
||||||
if(levelNode == 1){this.gameMessages.innerHTML = '<img style="height: 270px;" src="/imgs/trophees/bronze.png"><br>\
|
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>';}
|
<button id="mg__onend--restart" class="mg__button"><span class="icon-spinner11"></span></button>';}
|
||||||
|
@ -21,6 +21,9 @@
|
|||||||
|
|
||||||
@section('page-scripts')
|
@section('page-scripts')
|
||||||
<script src="/js/firework.js"></script>
|
<script src="/js/firework.js"></script>
|
||||||
|
|
||||||
|
<!--<script src="/js/fire-work.js"></script>-->
|
||||||
|
|
||||||
<script src="/js/memory.js"></script>
|
<script src="/js/memory.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
Reference in New Issue
Block a user