docs: rename OnitamaGamePatterns.md to GamePatterns.md

This commit is contained in:
hypercross 2026-04-19 11:20:49 +08:00
parent b0e74a5257
commit 762ed1a63a
1 changed files with 1 additions and 0 deletions

View File

@ -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.
- **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.
- *Keep files short and focused**: Each file should have a single responsibility, and not exceed 200 lines.
## Common Pitfalls