refactor(sts-like-viewer): simplify scene management and config
- Move configuration to `src/config/index.ts` - Simplify `App.tsx` by passing scene classes directly to `PhaserScene` - Update `GameUI` initialization to use string ID for container - Update documentation to mention `initData` for `ReactiveScene` - Standardize quote usage and formatting in config files
This commit is contained in:
@@ -32,8 +32,8 @@ packages/my-game/
|
||||
|
||||
### 1. ReactiveScene / GameHostScene
|
||||
Extend `ReactiveScene`(`packages\framework\src\scenes\ReactiveScene.ts`) to use reactive integration features.
|
||||
- Access game context for scene navigation
|
||||
- Use `this.disposables` for auto-cleanup on shutdown.
|
||||
- Use `initData` for context data passed from the `<PhaserScene/>` preact component.
|
||||
|
||||
### 2. Spawner Pattern
|
||||
Implement `Spawner<TData, TObj>` for data-driven objects.
|
||||
|
||||
Reference in New Issue
Block a user