Move sprites to their own bootstrap object due to race condition when loading graphics

This commit is contained in:
Logan Hunt 2022-04-13 11:50:50 -06:00
parent 27fa6357a6
commit 8d0c43c1e7
Signed by untrusted user who does not match committer: simponic
GPG Key ID: 52B3774857EB24B1

3
src/bootstrap.js vendored
View File

@ -7,7 +7,8 @@ game.bootstrap = (() => {
],
id: 'utils'
},
{ src: ['src/render/graphics.js', 'src/render/sprites.js'], id: 'graphics' },
{ src: ['src/render/graphics.js'], id: 'graphics' },
{ src: ['src/render/sprites.js'], id: 'sprites' },
{ src: ['src/components/component.js'], id: 'component' },
{
src: [