feat: confirm button with pulse animation + ready counter (X/N players)
This commit is contained in:
1 parent
91a1a9f4f0
commit
3125823f42
2 files changed
+84
-9
No files matched your search
@@ -69,6 +69,12 @@ io.on('connection', (socket) => {
|
||||
return
|
||||
}
|
||||
|
||||
// Broadcaster le compteur de joueurs prêts à tous
|
||||
io.to(roomId).emit('players-ready', {
|
||||
ready: room.pendingPlays.size,
|
||||
total: room.playerCount
|
||||
})
|
||||
|
||||
// Envoyer à chaque joueur son état personnalisé :
|
||||
// - celui qui vient de jouer reçoit phase='waiting'
|
||||
// - les autres restent en phase='selecting'
|
||||
|
||||
Reference in new issue
Block a user