15 lines
179 B
TypeScript
15 lines
179 B
TypeScript
import {
|
|
mainloop,
|
|
frame,
|
|
} from "./window.ts";
|
|
import game from "./game.ts";
|
|
|
|
game.init();
|
|
|
|
await mainloop((t) => {
|
|
// TODO: use t
|
|
game.update();
|
|
game.draw();
|
|
frame();
|
|
});
|