rpushin Posted June 29, 2015 Share Posted June 29, 2015 Good day, I'm experimenting with Phaser, trying to add circle primitives to arcade engine.The problem is my current code works fine in desktop yet it produces nothing for my mobile browsers(window Phone and UC browser for windows phone)even in canvas mode I'm just getting tetst list but no graphicsTest grounds are here: http://kirovreporting.ru/theGame/ To keep number of topics low, iwould like to also ask here these questions:1) How to completelly override default collide() behaviour(i.e. even when I provide specific function to call on collide, Phaser still does his work, like changing velocities, etc)2) I was trying to make bubbles constantly change colors through iterating all the hex numbers in tint - yet this produces mostly black bubbles - is there any way to change sprite over time from, say green to yellow, passing all colors inbetween? Link to comment Share on other sites More sharing options...
rpushin Posted June 30, 2015 Author Share Posted June 30, 2015 Hah! Finally found, what caused the crash.The problem lies with var dosmth = function(arg = 'defaultarg'){} while desktop browsers do just fine with this idiom, WP8 was unable to make sense of it. The additional question 1) still stands though. Link to comment Share on other sites More sharing options...
Skeptron Posted June 30, 2015 Share Posted June 30, 2015 Maybe use overlap() instead, and provide a callback function? This way velocities should remain unaffected. Link to comment Share on other sites More sharing options...
rpushin Posted June 30, 2015 Author Share Posted June 30, 2015 Will do for now. Thx! Link to comment Share on other sites More sharing options...
Recommended Posts