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.scale.refresh() = '#0d1018'"preload");

Could you help me please ?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.