Jump to content

Test: Difference between revisions

No edit summary
No edit summary
Line 77: Line 77:
   // Create an HTMLImageElement
   // Create an HTMLImageElement
   const texture = new Image();
   const texture = new Image();
   texture.src = 'https://survivalcraft.wiki/content/Textures/Bear_diffuse.png';
   texture.src = 'https://survivalcraft.wiki/content/Textures/Creatures/Bear_Brown.png';
   await texture.decode();
   await texture.decode();