shivansh-bhatnagar18 / multiplayer-uno

https://multiplayer-uno.vercel.app
21 stars 43 forks source link

Add a button to display game properties #161

Closed kuv2707 closed 1 week ago

kuv2707 commented 1 week ago

Description

We display the GamePropertiesModal on entering the game, but only once.

Notes

issue-assigner[bot] commented 1 week ago

Comment '@csoc-bot claim' to get this issue assigned or '@csoc-bot abandon' to get this issue unassigned.

sksmagr23 commented 1 week ago

@csoc-bot claim

issue-assigner[bot] commented 1 week ago

@sksmagr23 This issue has been successfully assigned to you! 🚀

sksmagr23 commented 1 week ago

@kuv2707 can you please tell from where to import and trigger leave game event,I am a bit confused about it

kuv2707 commented 1 week ago

You can use channel.triggerEvent to trigger an event. You need to pass the data relevant to the event (as defined in types.ts). For the LEAVE_GAME event though, no additional data is needed.

Look at MessageInput.tsx, where we trigger the SEND_MESSAGE event image

Let me know if you have any further questions