var config = {
type: Phaser.AUTO,
width: 800,
height: 600,
parent: 'game',
};
let game = new Phaser.Game(config);
let senceManager = new Phaser.Scenes.SceneManager(game);
let senceBoot = {
preload() {
console.log(123);
},
create() {
var t = this.add.text(200, 200, 'Phaser');
},
update(){
console.log('update');
},
render() {
},
}
senceManager.add('boot', senceBoot);
senceManager.start('boot');
You’re not supposed to make your own scene manager. Check the scene examples to see how to use scenes.
thanks!