agonya Posted June 10, 2017 Share Posted June 10, 2017 Hi all, I am making an android game with phaser but when I export it, the game does not play, I mean, I just have the menu screen but when I try to start the game the sounds play but it does not pass to game sreen from the menu screen. What is the problem I do not understand, I tried all screen settings, AUTO, CANVAS and WEBGL but it was same for all. Link to comment Share on other sites More sharing options...
aapo Posted June 11, 2017 Share Posted June 11, 2017 Without more information, it's very hard to say what the problem might be. You didn't mention exactly how you exported the game to Android, but assuming you're still running it in Chrome, you need to set up remote debugging. Google has a really detailed write-up on how exactly to set up remote debugging of Chrome on Android, but I'll try to summarise as best I can. Enable developer tools on your Android device Go into Settings Select Device Information If there isn't a Build Number enry already on the list, select Software Information Go back to the root menu of Settings, open Developer options Enable USB debugging Connect your phone by USB to your computer Open Chrome on your computer and navigate to chrome://inspect/ Open your game on your Android device, the game tab should appear on your computer Choose inspect below the games tab to get a remote view of the tab along with a debug console This way you can see if you've hit any errors when initializing your game and maybe get closer to identifying the problem. Edit: oh, if you've wrapped your game up with something to produce a native APK package to install on your phone, you can use Android SDK's adb (Android Debug Bridge) to get log output for your application, this has also been documented online thoroughly . agonya 1 Link to comment Share on other sites More sharing options...
agonya Posted June 11, 2017 Author Share Posted June 11, 2017 @aapo thank you so much my friend, I did all your said and I found the problem and solved it. The problem was that I forgot an unneccessary function in my game and It prevented to start the game. Link to comment Share on other sites More sharing options...
Recommended Posts