Feat : various fixes, sounds and multiplayer additions
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { endTurn, lockCard } from "~/netcode";
|
||||
import { endTurn, joinGame, lockCard, startGame } from "~/netcode";
|
||||
import type { Game, Player } from "~/netcode/interfaces";
|
||||
import { useTurnStore } from "~/stores/turnStore";
|
||||
|
||||
@@ -105,7 +105,6 @@ function boardCardClick(cardUUID: string) {
|
||||
|
||||
<template>
|
||||
<div class="player" :class="{ turn: isPlayerTurn, self: isSelf }">
|
||||
<div id="player_banner" class="big">test</div>
|
||||
<div id="turn_buttons">
|
||||
<button
|
||||
id="end_turn"
|
||||
@@ -115,6 +114,12 @@ function boardCardClick(cardUUID: string) {
|
||||
>
|
||||
END TURN
|
||||
</button>
|
||||
<button class="end_turn_button turn_icon" @click="startGame(game._id)">
|
||||
Start game
|
||||
</button>
|
||||
<button class="end_turn_button turn_icon" @click="joinGame(game._id)">
|
||||
Join game
|
||||
</button>
|
||||
|
||||
<div
|
||||
class="warning"
|
||||
|
||||
Reference in New Issue
Block a user