Reduce number of firework particles on mobile devices.

This commit is contained in:
Rob Pearce 2016-08-31 15:24:16 +10:00
parent 3df326dbbf
commit facceb304f
2 changed files with 4 additions and 2 deletions

View File

@ -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]);

2
todo
View File

@ -11,8 +11,6 @@ https://www.smashingmagazine.com/2012/10/design-your-own-mobile-game/
-------------------
*add firework effect for attaining goals
new door fell down on top of new goat!!
(or the other way around ??)
check code for doors falling when off the top of the screen.