diff --git a/src/lib/Player.svelte b/src/lib/Player.svelte new file mode 100644 index 0000000..6247efa --- /dev/null +++ b/src/lib/Player.svelte @@ -0,0 +1,34 @@ + + +
+ {#await promise} +

waiting ...

+ {:then ok} +
+ + arnold + {player.player.name}
+ Argent: {player.cash}
+ Position: {tile.name} + +
+ {:catch err} + {err.message} + + {/await} +
\ No newline at end of file diff --git a/src/lib/Tile.svelte b/src/lib/Tile.svelte index bfe310a..7757e43 100644 --- a/src/lib/Tile.svelte +++ b/src/lib/Tile.svelte @@ -17,10 +17,9 @@
- {name} - {position} +
{name}
{#await promise} -

wainting ...

+

waiting ...

{:then players} {#each players as player} {#if player.tileid == _id } diff --git a/src/routes/game/+page.svelte b/src/routes/game/+page.svelte index 137cdf8..26110f5 100644 --- a/src/routes/game/+page.svelte +++ b/src/routes/game/+page.svelte @@ -1,6 +1,7 @@