16 lines
171 B
JavaScript
16 lines
171 B
JavaScript
|
|
|
|
const game = {
|
|
state: {
|
|
room: 'menu',
|
|
paused: false
|
|
}
|
|
};
|
|
|
|
export function init() {
|
|
game.state.room = 'menu';
|
|
}
|
|
|
|
function tick() {
|
|
requestAnimationFrame(tick);
|
|
}
|