boxes/js/main.mjs

17 lines
346 B
JavaScript

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