This commit is contained in:
Rudy Masson 2024-02-24 16:08:19 +01:00
parent 1e3468f2e7
commit fd552afef9
3 changed files with 13 additions and 14 deletions

View File

@ -24,7 +24,7 @@
{:then players}
{#each players as player}
{#if player.tileid == _id }
<div style="background-color: {player.color}; width:40px;height:40px; border-radius:100%"></div>
<div style="width: 80px;height: 80px; background: url(./medias/logo/arnold.png) no-repeat {player.color}; background-size: 52px; background-position: center; border-radius: 50px"></div>
{/if}
{/each}
{:catch err}
@ -32,5 +32,4 @@
{/await}
</div>

View File

@ -108,16 +108,16 @@
sendMessage("MOVED "+data.party.playerstatus);
// temporaire on passe au suivant
//playernext();
break;
case "moved":
if(data.party.playertile.sound) {
var audio = new Audio("./medias/sound/goat.mp3");
audio.play();
}
break;
case "moved":
if(data.party.playertile.sound) {
var audio = new Audio("./medias/sound/goat.mp3");
audio.play();
}
playernext();
break;
}
}
@ -338,10 +338,10 @@
<button class="w-full bg-lime-500 hover:bg-lime-400 text-2xl md:text-3xl mb-3 text-black" on:click={roll}>
<div>Jetter les dés</div>
</button>
{:else}
<!-- {:else}
<button class="w-full bg-lime-500 hover:bg-lime-400 md:text-3xl mb-3 text-black p-3" on:click={playernext}>
Prochain Joueur
</button>
</button> -->
{/if}
</div>
{:else}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB