amagi Posted October 10, 2016 Share Posted October 10, 2016 In Chrome, my images are not displayed correctly. They either appear white or with the wrong opacity and some color disappear. It works well in my Firefox. Here is a small example that gives a problem and the screenshot show result in chrome and firefox. <html lang="en"> <head> <title></title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="assets/phaser.min.js" ></script> <script type="text/javascript"> var game = new Phaser.Game(400, 100, Phaser.AUTO, '', { preload: preload, create: create}); function preload() { game.load.image('dude', './assets/images/dude.png') game.stage.backgroundColor = 0x666600; } function create() { this.game.add.sprite(0, 0, 'dude'); } </script> </head> <body> </body> </html> My Chrome version : 53.0.2785.143 (64-bit) My Firefox : 49.0.1 Am I missing something? Link to comment Share on other sites More sharing options...
piotr Posted October 12, 2016 Share Posted October 12, 2016 I've tried your code and it's working fine. Are you using plugins on chrome to alter colors, e.g. to increase contrast? Link to comment Share on other sites More sharing options...
Befive.Info Posted October 12, 2016 Share Posted October 12, 2016 I also had the same problem. I was suggested that using CANVAS mode instead of WebGL solves that. I see quite many Phaser games with the issue even on famobi. Link to comment Share on other sites More sharing options...
CharlesCraft50 Posted October 13, 2016 Share Posted October 13, 2016 @amagi Try to clear the browser cache by going to Settings->Clear Browsing Data and check the Cached images and files option and click [Clear Browsing Data] or you can go to Inspect Element->Application check the Cache storage and click the [Clear site data] button Link to comment Share on other sites More sharing options...
Befive.Info Posted October 16, 2016 Share Posted October 16, 2016 Just to let you know. Maybe you have noticed already, the latest version of Chrome (OSX) Version 54.0.2840.59 (64-bit) has solved the issue and it shows colors of games in the webgl mode correctly. Link to comment Share on other sites More sharing options...
Recommended Posts