Reduce number of firework particles on mobile devices.
This commit is contained in:
parent
3df326dbbf
commit
facceb304f
4
cat.html
4
cat.html
|
@ -1217,6 +1217,10 @@ var game = {
|
|||
this.android = this.ua.indexOf('android') > -1 ? true : false;
|
||||
this.ios = ( this.ua.indexOf('iphone') > -1 || this.ua.indexOf('ipad') > -1 ) ? true : false;
|
||||
|
||||
if (this.ios || this.android) {
|
||||
FIREWORKSHARDS /= 2;
|
||||
}
|
||||
|
||||
// don't need this now that we statically define the canvas.
|
||||
//document.body.insertBefore(this.canvas, document.body.childNodes[0]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue