totallybueno Posted November 20, 2014 Share Posted November 20, 2014 Hi there,I have a weird situation here... I have my game working perfectly online (playing in Chrome and Firefox), cool. If I try it with CocoonJS Launcher on tablets and smartphones everything works perfectly, super cool. But, when I compile the project at least the first time I install and run the .apk, I get a black screen, not cool at all. Usually, if I close the game and I open it again, it works fine, not a big deal, but the first time I run the game, I ALWAYS have a black screen (sometimes is 2, 3, 4 times...). The "weird" thing is that after working fine once, it works perfectly always, but I don´t have a f* clue about what the hell is happening here. Does anyone some info about this? I´m lost I´m using Phaser 2.0.7 (now I´m compiling with 2.1.3), webview+ and 2.1.1 compiler. Link to comment Share on other sites More sharing options...
Sam Posted November 20, 2014 Share Posted November 20, 2014 nope, working a lot with cocoonjs, does not have problems like is. in fact since the last mini fixes it performes better then ever.this sound like it has 1. to do s.t. with your code or at 2. with cocoonJS. maybe it is ev en betterto open a post at does not soznd like a phaser issue. try a clean phaser project with only one sprite and see if this works.why do you use webview? canvas is much faster and better supported?at least there were issues with the webview in cocoonJS. there is a fix for android . ios still pending.regards Link to comment Share on other sites More sharing options...
totallybueno Posted November 21, 2014 Author Share Posted November 21, 2014 Thanks for your answer Sam. As I said yesterday, I compiled with the last version of Phaser and everything works fine now Honestly, I tried with webview+ because with canvas the game was rendered like 50% of the size and the buttons were not working, that´s all, I tried webview and everthing was perfect. So canvas is much faster? that´s pretty interestint, I have a game that I want to publish but it´s a little bit slow (I was trying with webview), I´ll give it a try with canvas, but I remember that it was happenning exactly the same... so many errors... buttons not working... crazy. I´ll check anyway. Thanks for your answer dude. Link to comment Share on other sites More sharing options...
Ludei Posted November 21, 2014 Share Posted November 21, 2014 Hello, there is a fix for android . ios still pending. We had a new release yesterday and the new launcher will be at the store as soon as it passes the revision. In addition, you can compile your project using the 2.1.1 since yesterday afternoon. If any problem persists, please, let us know and we will have a loon at it again. As I said yesterday, I compiled with the last version of Phaser and everything works fine now Honestly, I tried with webview+ because with canvas the game was rendered like 50% of the size and the buttons were not working, that´s all, I tried webview and everthing was perfect. So canvas is much faster? that´s pretty interestint, I have a game that I want to publish but it´s a little bit slow (I was trying with webview), I´ll give it a try with canvas, but I remember that it was happenning exactly the same... so many errors... buttons not working... crazy. I´ll check anyway. Canvas+ is an environment specific for canvas based games and focused on the performance. However, it has some restrictions. For example, the DOM access is limited. This must be in this way to maintain the high performance. However, our Webview+ should improve the performance of your game too in case you find any trouble using Canvas+. I wouldn't recommend you to use the Webview unless you want to use it specifically for some reason. It is the System Webview and it has less advantages than the rest of the environments regarding performance. Does the problem regarding the blank screen persist? If so, please, send us a test case and we will investigate it. In our latest release we fixed some problems regarding the interaction between Phaser and Cocoon and we added some new features: iOS ARM64 supportEnabled WV+ on 64 bit devicesFixed rare bug where Canvas+ could crash when executing code in onTouchEnd listenersFixed threading bug which was consuming battery when app was in background in Canvas+ (Android)Fixed blank screen issue. Fixed missing last sprite using CANVAS renderer. Here is a link to the full list: http://blog.ludei.com/latest-cocoonjs-releases-20141120/ Regards. totallybueno 1 Link to comment Share on other sites More sharing options...
totallybueno Posted November 21, 2014 Author Share Posted November 21, 2014 Hi there people at Ludei,first of all, THANK YOU for CocoonJS, it´s simply awesome, I do love it. Also, the problem with the black screen is not happenning anymore. In my last compilation is used Phaser 2.1.3 and your 2.1.1 version and everything seems to be working per-fec-tly, I´m just testing everyting before releasing the game Thank you so much guys, this tool it´s just that, awesome Link to comment Share on other sites More sharing options...
Recommended Posts