Gaben Posted February 11, 2017 Share Posted February 11, 2017 Hi there! Can anyone explain, please, why my image is not displayed? var game = new Phaser.Game( 240, 240, Phaser.AUTO ); var gameState = { preload: function() { game.load.image( 'flag', 'img/flag.png' ); }, create: function() { game.add.image( 0, 0, 'flag' ); }, update: function() { } }; game.state.add( 'gameState', gameState, true ); Link to comment Share on other sites More sharing options...
erich Posted February 14, 2017 Share Posted February 14, 2017 have a look at: http://phaser.io/examples/v2/basics/01-load-an-image should be : create: function() { game.add.sprite( 0, 0, 'flag' ); }, Link to comment Share on other sites More sharing options...
Recommended Posts