2023-06-23 09:00:12 +00:00
|
|
|
import * as graphics from "./graphics.mjs";
|
2023-06-23 09:37:25 +00:00
|
|
|
import { BOX_SIZE, get_tile } from "./world.mjs";
|
|
|
|
import "./player.mjs";
|
2023-06-23 09:00:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-23 09:37:25 +00:00
|
|
|
function render (timestamp) {
|
|
|
|
graphics.clear();
|
|
|
|
graphics.draw_world(BOX_SIZE, get_tile);
|
|
|
|
graphics.render();
|
2023-06-23 09:00:12 +00:00
|
|
|
|
2023-06-23 09:37:25 +00:00
|
|
|
requestAnimationFrame(render);
|
2023-06-23 09:00:12 +00:00
|
|
|
}
|
|
|
|
|
2023-06-23 09:37:25 +00:00
|
|
|
requestAnimationFrame(render);
|