老师。我的图片为什么没加载。背景也是。
var game =new Phaser.Game(375,667,Phaser.AUTO);
var helloState={
preload:function (){
game.stage.backgroundColor="#a8d4bf"
game.load.image("logo","/source/logo.png")
},
create:function (){
var text=game.add.text(game.world.centerX,25,"hello world11",{fill:'#fff'})
text.anchor.set(0.5);
var logo=game.add.image(game.world.centerX,game.world.centerY,"logo")
logo.anchor.set(0.5);
}
}
game.state.add("helloState",helloState);
game.state.start("helloState");