8867a60c94
the "level" will now restart (currently to a hardcoded state) when the player touches an enemy.
22 lines
347 B
JavaScript
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();
|