I have attached a .capx file for the game I am working which is similar to Amazing Theif game.
I can't figure out how to set random background color for bottomPipe and TopPipe which is being created every 1.4 seconds.
I want both of them to have same random color which are being created together then the other pair of pipes can have different random color.
Also I think the game lags a bit even on my browser and android device when I build it using Crosswalk via Intel XDK.
The frame rates are around 58 - 60 which is good but I still think sometimes it lags and the music doesn't play when it should be played.
Please let me know how can I work around with the color issue I mentioned above and about the lag.