feat: 数据mock
This commit is contained in:
33
src/api/mock/game-list.ts
Normal file
33
src/api/mock/game-list.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import type { GameItem } from '../modules/game/types'
|
||||
|
||||
/** 游戏列表 Mock 数据 */
|
||||
export const mockGameList: GameItem[] = [
|
||||
{
|
||||
id: 'snake',
|
||||
icon: '🐍',
|
||||
name: '贪吃蛇',
|
||||
description: '经典贪吃蛇竞技,在狭小空间内争夺生存权',
|
||||
gameplay: '方向键控制蛇的移动,吃到食物变长。撞墙或其他蛇的身体即死亡,最后存活的玩家获胜。'
|
||||
},
|
||||
{
|
||||
id: 'tetris',
|
||||
icon: '🧊',
|
||||
name: '俄罗斯方块',
|
||||
description: '经典下落消除,与对手一较高下',
|
||||
gameplay: '方向键移动和旋转方块,填满横排即可消除。同时向对手发送干扰行,坚持到最后的玩家获胜。'
|
||||
},
|
||||
{
|
||||
id: 'gomoku',
|
||||
icon: '⚫',
|
||||
name: '五子棋',
|
||||
description: '黑白对弈,先连成五子者胜',
|
||||
gameplay: '鼠标点击落子,黑白双方轮流在棋盘上放置棋子。先在横、竖、斜任意方向连成五子的一方获胜。'
|
||||
},
|
||||
{
|
||||
id: 'guess-number',
|
||||
icon: '🔢',
|
||||
name: '猜数字',
|
||||
description: '逻辑推理对战,猜中对方的秘密数字',
|
||||
gameplay: '每轮输入猜测的数字组合,系统会提示位置和数字正确的数量。率先猜中对手数字组合的玩家获胜。'
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user