feat(game): 实现出牌选择与计时功能
- 添加 PlayerTurnPayload 接口定义和 PLAYER_TURN 动作类型 - 实现选牌、出牌确认逻辑和相关状态管理 - 添加客户端出牌限制检查和错误提示 - 集成 PLAYER_TURN WebSocket 消息处理 - 添加房间状态面板显示游戏信息 - 优化桌面背景图片和样式布局 - 添加马蹄形动画样式文件 - 配置 Vite 别名和端口设置
This commit is contained in:
24
src/config/deskImageMap.ts
Normal file
24
src/config/deskImageMap.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// src/config/deskImageMap.ts
|
||||
|
||||
export interface DeskAsset {
|
||||
width: number
|
||||
height: number
|
||||
ratio: number
|
||||
src: string
|
||||
}
|
||||
|
||||
// 所有桌面资源
|
||||
export const DESK_ASSETS: DeskAsset[] = [
|
||||
{
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
ratio: 1920 / 1080,
|
||||
src: new URL('@/assets/images/desk/desk_01_1920_1080.png', import.meta.url).href,
|
||||
},
|
||||
{
|
||||
width: 1920,
|
||||
height: 945,
|
||||
ratio: 1920 / 945,
|
||||
src: new URL('@/assets/images/desk/desk_01_1920_945.png', import.meta.url).href,
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user