16 lines
298 B
JavaScript
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);
|