1

This is my code (I am linking it because I do not know where the problem is and I do not want to link it all to this post). I am getting this error in the console: (photo of error message)
The error is in line 57, but I do not know what is wrong.

rectangle = {
    height : 32,
    jumping : true,
    width : 32;
    x : 144,
    x_velocity : 0,
    y : 0,
    y_velocity : 0
};

1 Answers1

1

Just a minor syntax error that's causing your error. Update this line:

rectangle = {
                height : 32,
                jumping : true,
                width : 32, // Replace ; with ,
                x : 144,
                x_velocity : 0,
                y : 0,
                y_velocity : 0
            };
Dacre Denny
  • 29,664
  • 5
  • 45
  • 65