docs: rename OnitamaGamePatterns.md to GamePatterns.md
This commit is contained in:
parent
b0e74a5257
commit
762ed1a63a
|
|
@ -70,6 +70,7 @@ Register scenes in `App.tsx` via `<PhaserScene>`. Pass data via `data` prop.
|
||||||
- **Type Imports**: Use `import type { Foo } from 'bar'` for type-only imports.
|
- **Type Imports**: Use `import type { Foo } from 'bar'` for type-only imports.
|
||||||
- **Input Handling**: Use `this.add.zone()` for grid/cell-based input zones.
|
- **Input Handling**: Use `this.add.zone()` for grid/cell-based input zones.
|
||||||
- **Cleanup**: Always dispose `effect()` on `'destroy'`. Use `this.disposables.add()` for scene-level resources.
|
- **Cleanup**: Always dispose `effect()` on `'destroy'`. Use `this.disposables.add()` for scene-level resources.
|
||||||
|
- *Keep files short and focused**: Each file should have a single responsibility, and not exceed 200 lines.
|
||||||
|
|
||||||
## Common Pitfalls
|
## Common Pitfalls
|
||||||
|
|
||||||
Loading…
Reference in New Issue