The 'player turn' overlay

The first overlay will display two different messages to the current player, depending on whether it is skipping their turn or not. The player prop will receive the current player so that we can access its data. We will use a v-if directive paired with a v-else directive and the skipTurn property we just added to the players:

      Vue.component('overlay-content-player-turn', {
template: `<div>
<div class="big" v-if="player.skipTurn">{{ player.name }}, <br>your turn is skipped!</div>
<div class="big" v-else>{{ player.name }},<br>your turn has come!</div>
<div>Tap to continue</div>
</div>`,
props: ['player'],
})
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.34.178