Toby-Munyard / L3-Game

Level 3 Programming Project Game
0 stars 0 forks source link

fix new error with drawImg function #5

Closed Toby-Munyard closed 2 years ago

Toby-Munyard commented 2 years ago

Throwing error:

Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or OffscreenCanvas or SVGImageElement or VideoFrame)'

Toby-Munyard commented 2 years ago

Removed drawImg(); from mainloop and error is not longer thrown.