Add logo to main menu
This commit is contained in:
parent
cfe9c55c9a
commit
435b24cb6a
15 changed files with 135 additions and 40 deletions
|
@ -1,5 +1,6 @@
|
|||
import * as graphics from './graphics/index.mjs';
|
||||
import * as gui from './gui/index.mjs';
|
||||
import * as assets from './assets.mjs';
|
||||
|
||||
export let game;
|
||||
|
||||
|
@ -12,12 +13,13 @@ export async function init() {
|
|||
};
|
||||
|
||||
graphics.init();
|
||||
await assets.init();
|
||||
gui.init();
|
||||
|
||||
// Recursive `requestAnimationFrame` can cause problems with Parcel.
|
||||
while(true) {
|
||||
await tick();
|
||||
await new Promise(res => requestAnimationFrame(res));
|
||||
await new Promise(res => requestAnimationFrame(()=>{}));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue