What line of code creates the canvas?

Okay thanks I did that but I’m using a function that reassigns colors in my spritesheet and I’m getting “game is not defined” on lines where ‘game’ is used in that function.

This is one of the drawbacks when you are using someone else’s code.