Jump to content

Chrome image display


Recommended Posts

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">
        <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');



My Chrome version : 53.0.2785.143 (64-bit)
My Firefox : 49.0.1
Am I missing something?

Screen Shot 2016-10-10 at 14.18.12.png

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...