Hi all,
I am following the reversi tutorial. I literally just started the fresh project, and it already does not work. I haven't change the .js file at all. However, I receive the following error while trying to boot the game:
Uncaught ReferenceError: assignment to undeclared variable bgagame
In the .js file, I see the following line:
bgagame = { cornersproject: CornersProject };
Without any var, let, or const. the function above seems to perform this:
define("bgagame/cornersproject", ...)
What am I doing wrong? Is the default template broken?
I am following the reversi tutorial. I literally just started the fresh project, and it already does not work. I haven't change the .js file at all. However, I receive the following error while trying to boot the game:
Uncaught ReferenceError: assignment to undeclared variable bgagame
In the .js file, I see the following line:
bgagame = { cornersproject: CornersProject };
Without any var, let, or const. the function above seems to perform this:
define("bgagame/cornersproject", ...)
What am I doing wrong? Is the default template broken?