Feat : add game board to current_player
This commit is contained in:
@@ -108,7 +108,15 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<canvas ref="canvas">test</canvas>
|
||||
<canvas ref="canvas" id="background">test</canvas>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
<style scoped>
|
||||
#background {
|
||||
z-index: -1;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -68,6 +68,7 @@ function showWinnerScreen() {
|
||||
<div id="current_player"
|
||||
:class="(goStore.current_game?.current_turn && (goStore.current_game?.current_turn === goStore.self?.team)) ? 'self' : ''">
|
||||
<PlayerSlot v-for="p in current_players" :player="p"></PlayerSlot>
|
||||
<AnimatedBackground></AnimatedBackground>
|
||||
</div>
|
||||
</div>
|
||||
<ResultDialog :isVisible="showResults" :won="isWinner" :players="goStore.current_game?.players"
|
||||
@@ -106,8 +107,6 @@ function showWinnerScreen() {
|
||||
|
||||
#current_player {
|
||||
grid-area: current_player;
|
||||
background-image: url("/images/bg-darkgrass.png");
|
||||
|
||||
}
|
||||
|
||||
#player_list {
|
||||
|
||||
Reference in New Issue
Block a user