Init commit
This commit is contained in:
commit
0c5ad88981
8 changed files with 62 additions and 0 deletions
16
js/game.mjs
Normal file
16
js/game.mjs
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
|
||||
const game = {
|
||||
state: {
|
||||
room: 'menu',
|
||||
paused: false
|
||||
}
|
||||
};
|
||||
|
||||
export function init() {
|
||||
game.state.room = 'menu';
|
||||
}
|
||||
|
||||
function tick() {
|
||||
requestAnimationFrame(tick);
|
||||
}
|
0
js/graphics/background.mjs
Normal file
0
js/graphics/background.mjs
Normal file
0
js/graphics/gui.mjs
Normal file
0
js/graphics/gui.mjs
Normal file
0
js/graphics/index.mjs
Normal file
0
js/graphics/index.mjs
Normal file
3
js/index.mjs
Normal file
3
js/index.mjs
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { init } from './game.mjs';
|
||||
|
||||
window.addEventListener('load', init);
|
Loading…
Add table
Add a link
Reference in a new issue