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";
|
2023-06-24 08:03:32 +00:00
|
|
|
import { get_player_box } from "./player.mjs";
|
2023-06-24 15:24:57 +00:00
|
|
|
import "./save_load.mjs";
|
2023-06-23 09:00:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-06-23 09:37:25 +00:00
|
|
|
function render (timestamp) {
|
|
|
|
graphics.clear();
|
2023-06-24 08:03:32 +00:00
|
|
|
graphics.draw_world(get_player_box());
|
2023-06-23 09:37:25 +00:00
|
|
|
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);
|