SyntaxSquad/DADProject#15 feat: Added Multiplayer View and Stuff
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
:player-score="playerScore"
|
||||
:opponent-score="opponentScore"
|
||||
:current-turn="currentTurn"
|
||||
:player-name="playerName"
|
||||
:opponent-name="opponentName"
|
||||
:round-number="1"
|
||||
/>
|
||||
</div>
|
||||
@@ -62,6 +64,8 @@ const props = defineProps({
|
||||
// REMOVIDO: playableCardIndices (já não precisamos dele)
|
||||
playerScore: { type: Number, default: 0 },
|
||||
opponentScore: { type: Number, default: 0 },
|
||||
playerName: { type: String, default: 'You' },
|
||||
opponentName: { type: String, default: 'Bot' },
|
||||
currentTurn: {
|
||||
type: String,
|
||||
default: 'player',
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
turnChanged && 'animate-pulse',
|
||||
]"
|
||||
>
|
||||
{{ currentTurn === 'player' ? 'Your Turn' : "Bot's Turn" }}
|
||||
<!-- You can replace the above line with the following if you want to show names instead -->
|
||||
{{ currentTurn === 'player' ? playerName + "'s Turn" : opponentName + "'s Turn" }}
|
||||
</div>
|
||||
<span v-if="roundNumber" class="text-gray-500 text-[10px] font-medium">
|
||||
Round {{ roundNumber }}
|
||||
|
||||
Reference in New Issue
Block a user