Jump to content

how to debug this error on canvas+ ?


espace
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...