2023-04-28 20:01:48 -07:00
|
|
|
import {
|
|
|
|
mainloop,
|
2023-04-29 15:16:35 -07:00
|
|
|
frame,
|
|
|
|
} from "./window.ts";
|
2023-05-01 11:12:08 -07:00
|
|
|
import game from "./game.ts";
|
2023-04-29 15:16:35 -07:00
|
|
|
|
2023-05-01 11:12:08 -07:00
|
|
|
game.init();
|
2023-04-29 20:07:06 -07:00
|
|
|
|
|
|
|
await mainloop((t) => {
|
2023-05-01 11:12:08 -07:00
|
|
|
// TODO: use t
|
|
|
|
game.update();
|
|
|
|
game.draw();
|
2023-04-29 14:34:26 -07:00
|
|
|
frame();
|
|
|
|
});
|