hello ,
i have been following a tutorial and doing exactly same as in the video but when i load my file in google chrome this error appears and nothing works just a blank black page.HELP please!
phaser.min.js:1 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
phaser.min.js:1 Phaser v3.20.1 (WebGL | Web Audio) https://phaser.io
MYCODE:
const game= new Phaser.Game(800,600, Phaser.AUTO,’’,{
preload: preload,
create: create,
update: update
})
function preload (){
game.load.image(‘sky’,‘assets/sky.png’)
game.load.image(‘ground’,‘assets/platform1.png’)
game.load.image(‘diamond’,‘assets/diamond.png’)
game.load.image(‘woof’,‘assets/woof.png’,32,32)
}
function create(){
game.physics.startSystem(Phaser.Physics.ARCADE)
game.add.sprite(0,0,‘sky’)
}
function update(){}