When you try to create a new Image and use it in the ImageSprite constructor, it causes an error
// Create an Image
let direWarningImage = new Image();
direWarningImage.src = "./direwarning.png";
// Use it in the constructor
let imageSprite = new ImageSprite(direWarningImage, 20, 20);
I feel like it would be more intuitive to be able to use either a file location or an Image
When you try to create a new Image and use it in the ImageSprite constructor, it causes an error
I feel like it would be more intuitive to be able to use either a file location or an Image