Jump to content

how to debug this error on canvas+ ?


Recommended Posts


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");
	create: function(game){
		this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL
		this.scale.pageAlignHorizontally = true
		this.scale.pageAlignVertically = true
		this.game.stage.backgroundColor = '#0d1018'

Could you help me please ?


Link to comment
Share on other sites


  • Recently Browsing   0 members

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