Multiples games in parallel
release-tag / release-image (push) Successful in 58s

This commit is contained in:
2024-05-11 18:16:36 +02:00
parent 2927592ec2
commit 0c650dafc8
9 changed files with 128 additions and 50 deletions
+27
View File
@@ -0,0 +1,27 @@
<script setup lang="ts">
import goStore, { netcode_create_game, join_game } from '~/netcode';
const config = useRuntimeConfig()
async function discordLogin() {
await navigateTo(config.public.discordLoginEndpoint, {
external: true
})
}
</script>
<template>
<div v-if="goStore.current_game?.started">
<b>SPECTATOR MODE</b>
</div>
<template v-if="!goStore.current_game?.started">
<!-- <input type="text" v-model="username" />
<button @click="register(username)">LOGIN</button> -->
<button @click="discordLogin()">DISCORD</button>
</template>
</template>
<style scoped></style>