forked from noxious/client
Improve asset loading
This commit is contained in:
parent
578d210f77
commit
7c23b4e37e
@ -116,7 +116,7 @@ const preloadScene = (scene: Phaser.Scene) => {
|
|||||||
*/
|
*/
|
||||||
assets.value.forEach((asset) => {
|
assets.value.forEach((asset) => {
|
||||||
if (asset.type === 'link') {
|
if (asset.type === 'link') {
|
||||||
scene.load.image(asset.key, config.server_endpoint + '/assets' + asset.value + '.png')
|
scene.load.image(asset.key, config.server_endpoint + asset.value)
|
||||||
}
|
}
|
||||||
if (asset.type === 'base64') {
|
if (asset.type === 'base64') {
|
||||||
scene.textures.addBase64(asset.key, asset.value)
|
scene.textures.addBase64(asset.key, asset.value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user