boxes/js/main.mjs

15 lines
320 B
JavaScript

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