improcket/js/game.mjs
2018-03-02 01:32:18 +00:00

21 lines
259 B
JavaScript

import * as graphics from './graphics/index.mjs';
export let game;
export function init() {
game = {
state: {
room: 'menu',
paused: false
}
};
graphics.init();
tick();
}
function tick() {
graphics.render();
requestAnimationFrame(tick);
}