@energy8platform/game-engine 0.32.1 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs.js +4 -3
- package/dist/core.cjs.js.map +1 -1
- package/dist/core.esm.js +4 -3
- package/dist/core.esm.js.map +1 -1
- package/dist/host.cjs.js +4 -3
- package/dist/host.cjs.js.map +1 -1
- package/dist/host.esm.js +4 -3
- package/dist/host.esm.js.map +1 -1
- package/dist/index.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/core/GameApplication.ts +4 -3
|
@@ -287,9 +287,10 @@ export class GameApplication extends EventEmitter<GameEngineEvents> {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
private initSubSystems(): void {
|
|
290
|
-
// Asset Manager. Base defaults to '
|
|
291
|
-
// asset folder lives in the manifest paths, not the
|
|
292
|
-
|
|
290
|
+
// Asset Manager. Base defaults to '' (RELATIVE to the game document, like Vite's `base: './'`)
|
|
291
|
+
// when the bridge sends no assetsUrl — the asset folder lives in the manifest paths, not the
|
|
292
|
+
// base, so the same layout resolves under a CDN sub-path (Stake `/game/v7/`) and at the dev root.
|
|
293
|
+
const basePath = this.initData?.assetsUrl ?? '';
|
|
293
294
|
this.assets = new AssetManager(basePath, this.config.manifest);
|
|
294
295
|
|
|
295
296
|
// Audio Manager
|