fantasy-console/index.ts
2023-05-01 18:42:55 -07:00

18 lines
310 B
TypeScript

import {
mainloop,
frame,
} from "./window.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) => {
// TODO: use t
game.update();
game.draw();
frame();
});