diff --git a/src/components/GameCard.vue b/src/components/GameCard.vue index 91ba102..a0a11e7 100644 --- a/src/components/GameCard.vue +++ b/src/components/GameCard.vue @@ -1,11 +1,13 @@ @@ -20,7 +22,7 @@ defineEmits(['play', 'buy', 'addCart'])
{{ game.description }}
diff --git a/src/components/GameCarousel.vue b/src/components/GameCarousel.vue index 4e4c301..2805406 100644 --- a/src/components/GameCarousel.vue +++ b/src/components/GameCarousel.vue @@ -14,6 +14,9 @@ const props = defineProps({ interval: { type: Number, default: 5 }, // 自动播放间隔(秒) }) const emit = defineEmits(['play']) +function gameName(g) { + return g.code === 'starve' ? '年糕求生' : g.name +} const idx = ref(0) const n = computed(() => props.games.length) @@ -112,7 +115,7 @@ onBeforeUnmount(pause) {{ g.engine === 'online' ? '⚔️ 联机对战' : '🕹️ 单机' }} ⚡ 本周周免{{ g.description }}
+ {{ meta.controls }}
+ 移动端:点击地面移动{{ touchMode === 'both' || touchMode === 'joystick' ? ',也可使用左下角摇杆' : '' }};点击目标会自动攻击/采集。
+ 快捷键:WASD 移动 · 空格采集 · F 攻击 · C 合成 · M 地图 · P/Esc 暂停。
+
默认都支持;摇杆未选中时自动隐藏。
+