precision-game/js/main.mjs
trans_soup 8867a60c94 implement basic loss condition and restarting.
the "level" will now restart (currently to a hardcoded state) when the
player touches an enemy.
2023-10-26 02:22:49 +02:00

22 lines
347 B
JavaScript

import { assert } from "./test.mjs";
import { render } from "./graphics.mjs";
import { tick } from "./tick.mjs";
import { set_pos, get_pos, move } from "./entity.mjs";
import { player } from "./player.mjs";
import * as level from "./level.mjs";
function main () {
render();
tick();
requestAnimationFrame(main);
}
level.load();
main();