espace Posted October 11, 2017 Share Posted October 11, 2017 hi, I don't know how to debug this error. when i run my game on webview+ on cocoon everything works. But when i'm on canvas+ i have this error : Javascript Exception (Tag:'script'):ReferenceError:boot is not defined at <anonymous>:37:29 at<anonymous>:47:3 How do i debug this ? 37:29 doesn't match to a number line ... I'm a little loss about this error. Below you could see my snippet about bootstate, i see nothing wrong... var boot= { preload: function(game){ console.log("%cStarting Bubx", "color:white; background:#ff1fcd"); this.load.image("loading","assets/loading.png"); this.load.image("loading_back","assets/loading_back.png"); }, create: function(game){ this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL this.scale.pageAlignHorizontally = true this.scale.pageAlignVertically = true this.scale.refresh() this.game.stage.backgroundColor = '#0d1018' this.game.state.start("preload"); } } Could you help me please ? Link to comment Share on other sites More sharing options...
3man7 Posted October 11, 2017 Share Posted October 11, 2017 I'm not sure if the error refers to something else but first thing that came to my mind is the lack of semi-colons at the end of the lines in create function. Link to comment Share on other sites More sharing options...
espace Posted October 12, 2017 Author Share Posted October 12, 2017 hi, in fact canvas+ is more restrictive in comparaison of webview+, damage Link to comment Share on other sites More sharing options...
Recommended Posts