Game on PC web browser vs mobile web prowser

Hello all, I made a preliminary game and put it on a website. You can play it here:

The game works fine in any PC web browser. However, in my mobile web browser (Chrome on a moto g3), the game is glitchy. Squares are not changing colour when they should, and vice versa. Why would this be and is there any way to rectify this?

Thank you,
Joe

I used cocos2d-x-3.8.1 , game was written in Javascript.

PS- not even sure if it’s possible to win my game FYI

@joneill4x,

Try to check is there any error message on console when running ti on mobile browser.

You can make use of remote debug:

Regards,
Gurudath

1 Like

Thank you @Gurudath. Here is the log message shown by remote debugger:

http://stats.hosting24.com/count.php Failed to load resource: the server responded with a status of 404 (Not Found)
game.min.js:16 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.
game.min.js:70 Cocos2d-JS v3.8
game.min.js:1 The devicemotion event is deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
game.min.js:148 Failed to execute ‘requestFullScreen’ on ‘Element’: API can only be initiated by a user gesture.
http://stats.hosting24.com/count.php Failed to load resource: the server responded with a status of 404 (Not Found)
6game.min.js:148 Failed to execute ‘requestFullScreen’ on ‘Element’: API can only be initiated by a user gesture.
toroidal.net23.net/:1 Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343.