boxes/js/main.mjs
2023-06-24 14:15:27 +02:00

16 lines
298 B
JavaScript

import * as graphics from "./graphics.mjs";
import { BOX_SIZE, get_tile } from "./world.mjs";
import "./player.mjs";
function render (timestamp) {
graphics.clear();
graphics.draw_world(BOX_SIZE, get_tile);
graphics.render();
requestAnimationFrame(render);
}
requestAnimationFrame(render);