Able to eval js with my scope!

This commit is contained in:
dylan
2023-05-01 18:42:55 -07:00
parent 5d742d5964
commit a7b675d541
7 changed files with 67 additions and 4 deletions

View File

@ -2,11 +2,14 @@ import {
mainloop,
frame,
} from "./window.ts";
import game from "./game.ts";
import cart from "./cart_unpacked.json" assert { type: "json" };
import { parseCodeSheet } from "./cart_tools.ts";
const game = parseCodeSheet(cart[0].value);
game.init();
await mainloop((t) => {
await mainloop((_t) => {
// TODO: use t
game.update();
game.draw();