allow saving and loading carts
This commit is contained in:
@@ -9,6 +9,7 @@ import { addToContext, runCode } from "./runcode.ts";
|
||||
import { resetRepl } from "./repl.ts";
|
||||
import { COLOR } from "./colors.ts";
|
||||
import { getSheet, getCodeSheet } from "./sheet.ts";
|
||||
import { saveCart, loadCart } from "./cart.ts";
|
||||
|
||||
let spritesheet: number | null = null;
|
||||
|
||||
@@ -58,6 +59,8 @@ const faux = {
|
||||
},
|
||||
log: console.log,
|
||||
JSON: JSON,
|
||||
save: saveCart,
|
||||
load: loadCart,
|
||||
};
|
||||
|
||||
for (const key in faux) {
|
||||
|
||||
Reference in New Issue
Block a user