From 8d0c43c1e7c47bb6767d361d8141c1467df9d50a Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Wed, 13 Apr 2022 11:50:50 -0600 Subject: [PATCH] Move sprites to their own bootstrap object due to race condition when loading graphics --- src/bootstrap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootstrap.js b/src/bootstrap.js index f6997ae..3a38f72 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -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: [