Some slight refactoring

This commit is contained in:
dylan
2023-05-10 20:36:18 -07:00
parent 04f206814c
commit f8c1cebedb
4 changed files with 56 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
import { getCart } from "./cart.ts";
import { LinearGrid } from "./util.ts";
// import { runCode, addToContext } from "./runcode.ts";
// "code" | "spritesheet" | "map" | "sfx" | "patterns" | "fonts"
@@ -50,5 +51,5 @@ export const getMapSheet = (sheet: number) => {
if (sheet_type !== "map") {
throw "Trying to use a non-map sheet as a map."
}
return value;
return LinearGrid(value, 64);
}