Files
EBLv2/sprites.js

10 lines
195 B
JavaScript
Raw Normal View History

2025-10-01 18:25:31 +10:00
const ufo = new Image();
ufo.src = "sprites/ufo.png";
const spriteData = {
"ufo": {}
};
ufo.onload = function () {
spriteData.ufo.width = this.width;
spriteData.ufo.height = this.height;
}