Some slight refactoring
This commit is contained in:
3
sheet.ts
3
sheet.ts
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user