林旭祥 3 тижнів тому
батько
коміт
e6b6dd8b6d

+ 0 - 27
src/views/game/components/basketball.vue

@@ -9,7 +9,6 @@
 
 <script setup name="Basketball" lang="ts">
 import { onMounted, ref, reactive, onBeforeUnmount } from 'vue';
-import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 const { proxy } = getCurrentInstance() as any;
 const router = useRouter();
 const emit = defineEmits(['confirmExit']);
@@ -96,32 +95,6 @@ const getInit = (e: any) => {
   getCanvas();
 };
 
-
-/**
- * 查询姿态识别状态
-*/
-const getCheckBodypose = () => {
-  let handcontroller_id = deviceInfo.value.handcontroller_id;
-  //检查是否支持姿态识别
-  checkBodypose(handcontroller_id);
-};
-
-/**
- * 关闭姿态识别
-*/
-const getCloseBodypose = () => {
-  let handcontroller_id = deviceInfo.value.handcontroller_id;
-  terminateBodypose(handcontroller_id);
-  bodyposeState.value = false;
-  speckCancel(); //停止播报
-  setTimeout(() => {
-    if (wsState.value) {
-      closeWS();
-    }
-  }, 3000)
-};
-
-
 const getCanvas = () => {
   //过肩或者过鼻子都算投篮
   let leftA = bodyposeData.value[6][1];//右肩Y

+ 0 - 1
src/views/game/components/football.vue

@@ -62,7 +62,6 @@
 <script setup name="Football" lang="ts">
 import Phaser from 'phaser';
 import { onMounted, ref, reactive, onBeforeUnmount, watch } from 'vue';
-import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 const { proxy } = getCurrentInstance() as any;
 const router = useRouter();
 const emit = defineEmits(['confirmExit']);

+ 0 - 1
src/views/game/components/fruit.vue

@@ -9,7 +9,6 @@
 <script setup name="Fruit" lang="ts">
 import { onMounted, ref } from 'vue';
 import Phaser from 'phaser';
-import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 const { proxy } = getCurrentInstance() as any;
 const router = useRouter();
 const emit = defineEmits(['confirmExit']);

+ 0 - 1
src/views/game/components/humanBody.vue

@@ -5,7 +5,6 @@
 </template>
 
 <script setup name="HumanBody" lang="ts">
-import { initSpeech, speckText, playMusic, controlMusic, speckCancel, chineseNumber } from '@/utils/speech';
 const { proxy } = getCurrentInstance() as any;
 const router = useRouter();
 const canvasRef = ref(null);