Kinda working lobbies WIP

This commit is contained in:
2025-09-03 21:07:13 +02:00
parent d32eee314f
commit 81ad47960a
7 changed files with 110 additions and 16 deletions

View File

@@ -0,0 +1,15 @@
<script lang="ts">
import type { PageProps } from './$types';
let { data }: PageProps = $props();
</script>
<h1>You are in lobby with ID: {data.lobby?.id}</h1>
<h2>Youre username is: {data.username}</h2>
<h2>Players in Lobby: </h2>
<ul>
{#each data.lobby.usersInLobby as player (player.userEmail)}
<li>{player.user.username}</li>
{/each}
</ul>