添加 claude code game studios 到项目
This commit is contained in:
15
.claude/rules/ui-code.md
Normal file
15
.claude/rules/ui-code.md
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
paths:
|
||||
- "src/ui/**"
|
||||
---
|
||||
|
||||
# UI Code Rules
|
||||
|
||||
- UI must NEVER own or directly modify game state — display only, use commands/events to request changes
|
||||
- All UI text must go through the localization system — no hardcoded user-facing strings
|
||||
- Support both keyboard/mouse AND gamepad input for all interactive elements
|
||||
- All animations must be skippable and respect user motion/accessibility preferences
|
||||
- UI sounds trigger through the audio event system, not directly
|
||||
- UI must never block the game thread
|
||||
- Scalable text and colorblind modes are mandatory, not optional
|
||||
- Test all screens at minimum and maximum supported resolutions
|
||||
Reference in New Issue
Block a user