Collision

This commit is contained in:
2025-10-01 18:25:31 +10:00
parent fc9a447257
commit dcbdd23b24
5 changed files with 71 additions and 8 deletions

10
sprites.js Normal file
View File

@@ -0,0 +1,10 @@
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;
}