Able to eval js with my scope!
This commit is contained in:
7
index.ts
7
index.ts
@ -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();
|
||||
|
Reference in New Issue
Block a user