大乱斗细节完善
This commit is contained in:
@@ -345,6 +345,7 @@ onUnmounted(() => {
|
||||
:name="player.name"
|
||||
:avatar="player.avatar"
|
||||
:scores="playersScores[player.id]"
|
||||
:done="playersScores[player.id].length === 12"
|
||||
/>
|
||||
</view>
|
||||
<Timer :seq="timerSeq" />
|
||||
|
||||
@@ -105,6 +105,7 @@ onLoad(async (options) => {
|
||||
:name="player.name"
|
||||
:avatar="player.avatar"
|
||||
:scores="player.arrowHistory"
|
||||
:done="false"
|
||||
/>
|
||||
<view
|
||||
v-for="(round, index) in roundsData"
|
||||
|
||||
@@ -21,6 +21,7 @@ const gameType = ref(0);
|
||||
const teamSize = ref(0);
|
||||
const matching = ref(false);
|
||||
const start = ref(false);
|
||||
const startCount = ref(false);
|
||||
const battleId = ref("");
|
||||
const currentRound = ref(1);
|
||||
const totalRounds = ref(0);
|
||||
@@ -82,6 +83,7 @@ async function onReceiveMessage(messages = []) {
|
||||
if (msg.id !== battleId.value) return;
|
||||
if (msg.constructor === MESSAGETYPES.MeleeAllReady) {
|
||||
start.value = true;
|
||||
startCount.value = true;
|
||||
seq.value += 1;
|
||||
timerSeq.value = 0;
|
||||
tips.value = "请连续射出6支箭";
|
||||
@@ -95,6 +97,7 @@ async function onReceiveMessage(messages = []) {
|
||||
playersScores.value[msg.userId].push(msg.target);
|
||||
}
|
||||
if (msg.constructor === MESSAGETYPES.HalfTimeOver) {
|
||||
startCount.value = false;
|
||||
halfTimeTip.value = true;
|
||||
tips.value = "准备下半场";
|
||||
}
|
||||
@@ -129,7 +132,7 @@ onUnmounted(() => {
|
||||
<BowPower :power="45" />
|
||||
</view>
|
||||
</Guide>
|
||||
<ShootProgress v-if="start" :seq="seq" :start="start" :tips="tips" />
|
||||
<ShootProgress v-if="start" :seq="seq" :start="startCount" :tips="tips" />
|
||||
<view v-if="start" class="infos">
|
||||
<Avatar :src="user.avatar" :size="35" />
|
||||
<BowPower :power="power" />
|
||||
@@ -148,6 +151,7 @@ onUnmounted(() => {
|
||||
:name="player.name"
|
||||
:avatar="player.avatar"
|
||||
:scores="playersScores[player.id]"
|
||||
:done="playersScores[player.id].length === 12"
|
||||
/>
|
||||
<Timer :seq="timerSeq" :callBack="readyToGo" />
|
||||
<ScreenHint
|
||||
|
||||
Reference in New Issue
Block a user