@energy8platform/game-engine 0.32.0 → 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.
@@ -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 '/' (site root) when the bridge sends no assetsUrl the
291
- // asset folder lives in the manifest paths, not the base, so it needn't be named `assets`.
292
- const basePath = this.initData?.assetsUrl ?? '/';
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