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.android = this.ua.indexOf('android') > -1 ? true : false;
|
||||||
this.ios = ( this.ua.indexOf('iphone') > -1 || this.ua.indexOf('ipad') > -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.
|
// don't need this now that we statically define the canvas.
|
||||||
//document.body.insertBefore(this.canvas, document.body.childNodes[0]);
|
//document.body.insertBefore(this.canvas, document.body.childNodes[0]);
|
||||||
|
|
||||||
|
|
2
todo
2
todo
|
@ -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!!
|
new door fell down on top of new goat!!
|
||||||
(or the other way around ??)
|
(or the other way around ??)
|
||||||
check code for doors falling when off the top of the screen.
|
check code for doors falling when off the top of the screen.
|
||||||
|
|
Loading…
Reference in New Issue