Spritesheets get 2 pages

This commit is contained in:
dylan
2023-05-09 20:29:25 -07:00
parent 90b97a30bd
commit 38eabd380a
4 changed files with 80 additions and 21 deletions

View File

@@ -39,6 +39,9 @@ export const getSpriteSheet = (sheet: number) => {
if (sheet_type !== "spritesheet") {
throw Error("Trying to use a non-sprite sheet as a spritesheet.");
}
while (value.length < 128) {
value.push(Array(64).fill(0));
}
return value;
}
@@ -48,6 +51,4 @@ export const getMapSheet = (sheet: number) => {
throw "Trying to use a non-map sheet as a map."
}
return value;
}
// addToContext("code", codeSheet);
}