Feat : add game board to current_player

This commit is contained in:
2024-05-19 01:23:11 +02:00
parent caa54e6ece
commit d5c65cfb14
2 changed files with 11 additions and 4 deletions
+10 -2
View File
@@ -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>
+1 -2
View File
@@ -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 {